Spaces:
Running
Running
Commit
·
960f7de
1
Parent(s):
5650adf
Update page1.py
Browse files
page1.py
CHANGED
@@ -42,9 +42,9 @@ def text():
|
|
42 |
}
|
43 |
)
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
|
49 |
|
50 |
with st.chat_message("assistant").markdown(text_output):
|
|
|
42 |
}
|
43 |
)
|
44 |
|
45 |
+
with st.spinner('Generating...'):
|
46 |
+
for chunk in llm_chain.stream(prompt):
|
47 |
+
text_output = chunk.get("text", "")
|
48 |
|
49 |
|
50 |
with st.chat_message("assistant").markdown(text_output):
|