Krzysztof Krystian Jankowski commited on
Commit
70576b6
1 Parent(s): 9f6dce5
Files changed (2) hide show
  1. app.py +6 -1
  2. requirements.txt +0 -6
app.py CHANGED
@@ -44,5 +44,10 @@ with col1:
44
  with col2:
45
  blog_style=st.selectbox("Select the Blog Style", ["Personal", "Research Paper", "Humor, casual"])
46
  submit=st.button("Generate Blog")
 
 
47
  if submit:
48
- st.write(getLlamaResponse(input_text, no_words, blog_style))
 
 
 
 
44
  with col2:
45
  blog_style=st.selectbox("Select the Blog Style", ["Personal", "Research Paper", "Humor, casual"])
46
  submit=st.button("Generate Blog")
47
+ placeholder = st.empty()
48
+
49
  if submit:
50
+ response = ""
51
+ for text in llm("AI is going to", stream=True):
52
+ response += text + " "
53
+ placeholder.text(response)
requirements.txt CHANGED
@@ -1,8 +1,2 @@
1
- sentence-transformers
2
- uvicorn
3
- transformers
4
  ctransformers
5
- langchain
6
- langchain-community
7
- python-box
8
  streamlit
 
 
 
 
1
  ctransformers
 
 
 
2
  streamlit