arshad-ml commited on
Commit
d7cd01a
·
verified ·
1 Parent(s): 4e79ff2

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -23,7 +23,7 @@ def load_answer(question):
23
  AIMessage(content=assistant_answer.content)
24
  )
25
 
26
- return assistant_answer.content
27
 
28
 
29
  def get_text():
@@ -39,7 +39,9 @@ submit = st.button("Generate")
39
 
40
  if submit:
41
 
42
- response = load_answer(user_input)
 
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)