Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -350,10 +350,10 @@ def main():
|
|
350 |
|
351 |
user_input = st.chat_input("Ask me anything")
|
352 |
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
|
358 |
if __name__ == "__main__":
|
359 |
main()
|
|
|
350 |
|
351 |
user_input = st.chat_input("Ask me anything")
|
352 |
|
353 |
+
if user_input:
|
354 |
+
with st.spinner('Generating Response...'):
|
355 |
+
response = handle_chat(user_prompt, user_suggested_input or user_input, teapot_ai)
|
356 |
+
|
357 |
|
358 |
if __name__ == "__main__":
|
359 |
main()
|