Spaces:
Sleeping
Sleeping
WilliamGazeley
commited on
Commit
·
c9d6063
1
Parent(s):
262a057
Fix output
Browse files- src/app.py +3 -2
src/app.py
CHANGED
@@ -121,13 +121,14 @@ def main():
|
|
121 |
return get_response(input_text, depth + 1)
|
122 |
|
123 |
if st.button("Generate"):
|
|
|
124 |
if input_text:
|
125 |
with st.status("Generating response...") as status:
|
126 |
config.status = status
|
127 |
config.status.update(label=":question: Breaking down question")
|
128 |
response = get_response(input_text)
|
129 |
-
st.
|
130 |
-
config.status.update(label="Finished!", state="complete", expanded=True)
|
131 |
else:
|
132 |
st.warning("Please enter some text to generate a response.")
|
133 |
|
|
|
121 |
return get_response(input_text, depth + 1)
|
122 |
|
123 |
if st.button("Generate"):
|
124 |
+
start = time()
|
125 |
if input_text:
|
126 |
with st.status("Generating response...") as status:
|
127 |
config.status = status
|
128 |
config.status.update(label=":question: Breaking down question")
|
129 |
response = get_response(input_text)
|
130 |
+
st.info(response)
|
131 |
+
config.status.update(label=f"Finished! ({time() - start:.2f}s)", state="complete", expanded=True)
|
132 |
else:
|
133 |
st.warning("Please enter some text to generate a response.")
|
134 |
|