Last active
September 19, 2023 09:07
-
-
Save youtube-jocoding/f255a3f29afb8944b1121b663c0d8412 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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