Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -63,15 +63,15 @@ if submitted:
|
|
63 |
stream=True
|
64 |
)
|
65 |
minutes, seconds, milliseconds = process_with_timing()
|
66 |
-
|
67 |
-
|
68 |
# Concatenate chunks to form the full response
|
69 |
for chunk in stream:
|
70 |
full_text += chunk.choices[0].delta.content
|
71 |
|
72 |
# Update session state with the full response
|
73 |
st.session_state["full_text"] = full_text
|
74 |
-
|
75 |
# Display the full response
|
76 |
if st.session_state["full_text"]:
|
77 |
-
st.info(st.session_state["full_text"])
|
|
|
|
63 |
stream=True
|
64 |
)
|
65 |
minutes, seconds, milliseconds = process_with_timing()
|
66 |
+
|
|
|
67 |
# Concatenate chunks to form the full response
|
68 |
for chunk in stream:
|
69 |
full_text += chunk.choices[0].delta.content
|
70 |
|
71 |
# Update session state with the full response
|
72 |
st.session_state["full_text"] = full_text
|
73 |
+
|
74 |
# Display the full response
|
75 |
if st.session_state["full_text"]:
|
76 |
+
st.info(st.session_state["full_text"])
|
77 |
+
st.info(f"Elapsed Time: {int(minutes)} minutes, {seconds} seconds, and {milliseconds:.2f} milliseconds")
|