Spaces:
Sleeping
Sleeping
Commit
·
c743029
1
Parent(s):
37e3916
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ if st.button("Submit", type="primary"):
|
|
21 |
):
|
22 |
chunk_content = chunk["choices"][0].get("delta", {}).get("content")
|
23 |
if chunk_content is not None:
|
24 |
-
|
25 |
result = "".join(content).strip()
|
26 |
result = result.replace("\n", "")
|
27 |
res_box.markdown(result)
|
|
|
21 |
):
|
22 |
chunk_content = chunk["choices"][0].get("delta", {}).get("content")
|
23 |
if chunk_content is not None:
|
24 |
+
content.append(chunk_content)
|
25 |
result = "".join(content).strip()
|
26 |
result = result.replace("\n", "")
|
27 |
res_box.markdown(result)
|