Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,22 +25,13 @@ container = st.container()
|
|
| 25 |
|
| 26 |
|
| 27 |
with container:
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
with response_container:
|
| 38 |
-
for i in range(len(st.session_state['messages'])):
|
| 39 |
-
if (i % 2) == 0:
|
| 40 |
-
message(st.session_state['messages'][i], is_user=True, key=str(i) + '_user')
|
| 41 |
-
else:
|
| 42 |
-
message(st.session_state['messages'][i], key=str(i) + '_AI')
|
| 43 |
-
|
| 44 |
|
| 45 |
llm = ChatOpenAI(
|
| 46 |
temperature=0,
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
with container:
|
| 28 |
+
with st.form(key="my_form", clear_on_submit = True)
|
| 29 |
+
user_input = st.text_area("Your question goes here:", key='input', height=100)
|
| 30 |
+
submit_button = st.form_submit_button(label='Send')
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
with response_container:
|
| 34 |
+
st.write("Response Container")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
llm = ChatOpenAI(
|
| 37 |
temperature=0,
|