Skip to content

Instantly share code, notes, and snippets.

@youtube-jocoding
Last active September 19, 2023 09:07
Show Gist options
  • Save youtube-jocoding/f255a3f29afb8944b1121b663c0d8412 to your computer and use it in GitHub Desktop.
Save youtube-jocoding/f255a3f29afb8944b1121b663c0d8412 to your computer and use it in GitHub Desktop.
import streamlit as st
from langchain.llms import CTransformers
llm = CTransformers(
model="llama-2-7b-chat.ggmlv3.q2_K.bin",
model_type="llama"
)
st.title('인공지능 시인')
content = st.text_input('시의 주제를 제시해주세요.')
if st.button('시 작성 요청하기'):
with st.spinner('시 작성 중...'):
result = llm.predict("write a poem about " + content + ": ")
st.write(result)
@deepak7642
Copy link

It's really a gem for me but when I tried it it shows me - huggingface_hub.utils._errors.RepositoryNotFoundError. Can you help me with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment