AItool commited on
Commit
27856a5
·
verified ·
1 Parent(s): 4aa41d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -63,15 +63,15 @@ if submitted:
63
  stream=True
64
  )
65
  minutes, seconds, milliseconds = process_with_timing()
66
- st.write(f"Elapsed Time: {int(minutes)} minutes, {seconds} seconds, and {milliseconds:.2f} milliseconds")
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")