Upload app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def load_answer(question):
|
|
23 |
AIMessage(content=assistant_answer.content)
|
24 |
)
|
25 |
|
26 |
-
return assistant_answer
|
27 |
|
28 |
|
29 |
def get_text():
|
@@ -39,7 +39,9 @@ submit = st.button("Generate")
|
|
39 |
|
40 |
if submit:
|
41 |
|
42 |
-
|
|
|
43 |
st.subheader("Answer:")
|
44 |
|
45 |
st.write(response, key=1)
|
|
|
|
23 |
AIMessage(content=assistant_answer.content)
|
24 |
)
|
25 |
|
26 |
+
return assistant_answer
|
27 |
|
28 |
|
29 |
def get_text():
|
|
|
39 |
|
40 |
if submit:
|
41 |
|
42 |
+
answer = load_answer(user_input)
|
43 |
+
response = answer.content
|
44 |
st.subheader("Answer:")
|
45 |
|
46 |
st.write(response, key=1)
|
47 |
+
st.write(response, key=2)
|