Youssefk commited on
Commit
9b4b7a4
1 Parent(s): 0ed0e21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -99,10 +99,12 @@ message("Hello, How can I help you?")
99
 
100
 
101
  question = get_text()
102
- message(question,is_user=True)
103
- # Generate the answer using the model
104
- answer = qa_model(question=question, context=context)
105
- message(answer)
 
 
106
  st.experimental_rerun()
107
  # Print the answer
108
  # print(answer)
 
99
 
100
 
101
  question = get_text()
102
+ while True:
103
+ # Generate the answer using the model
104
+ answer = qa_model(question=question, context=context)
105
+ message(question,is_user=True)
106
+ message(answer)
107
+
108
  st.experimental_rerun()
109
  # Print the answer
110
  # print(answer)