Youssefk commited on
Commit
3c70847
1 Parent(s): 6219c07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -44,11 +44,12 @@ message("Hello, How can I help you?")
44
 
45
  question = get_text()
46
  # while True:
47
-
48
- # Generate the answer using the model
49
- message(question,is_user=True)
50
- answer = qa_model(question=question, context=context)
51
- message(answer)
 
52
 
53
  # Print the answer
54
  # print(answer)
 
44
 
45
  question = get_text()
46
  # while True:
47
+ if st.button("Send"):
48
+ # Generate the answer using the model
49
+ message(question,is_user=True)
50
+ answer = qa_model(question=question, context=context)
51
+ message(answer)
52
+
53
 
54
  # Print the answer
55
  # print(answer)