Update app.py
Browse files
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)
|