Spaces:
Sleeping
Sleeping
Clear input box after use
Browse files
app.py
CHANGED
|
@@ -58,6 +58,7 @@ def handle_submit():
|
|
| 58 |
|
| 59 |
answer = completion.choices[0].message['content']
|
| 60 |
st.session_state.conversation = f"<p><strong>User:</strong> {user_input}</p><p><strong>Adrega AI:</strong> {answer}</p>" + st.session_state.conversation
|
|
|
|
| 61 |
else:
|
| 62 |
st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
|
| 63 |
|
|
|
|
| 58 |
|
| 59 |
answer = completion.choices[0].message['content']
|
| 60 |
st.session_state.conversation = f"<p><strong>User:</strong> {user_input}</p><p><strong>Adrega AI:</strong> {answer}</p>" + st.session_state.conversation
|
| 61 |
+
st.session_state.user_input = ""
|
| 62 |
else:
|
| 63 |
st.session_state.conversation(f"<p><strong>Adrega AI:</strong>: Please enter a question.")
|
| 64 |
|