Update app.py
Browse files
app.py
CHANGED
|
@@ -97,15 +97,14 @@ def get_text():
|
|
| 97 |
|
| 98 |
message("Hello, How can I help you?")
|
| 99 |
|
| 100 |
-
|
| 101 |
question = get_text()
|
| 102 |
-
while True:
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
| 107 |
|
| 108 |
-
st.experimental_rerun()
|
| 109 |
# Print the answer
|
| 110 |
# print(answer)
|
| 111 |
|
|
|
|
| 97 |
|
| 98 |
message("Hello, How can I help you?")
|
| 99 |
|
|
|
|
| 100 |
question = get_text()
|
| 101 |
+
# while True:
|
| 102 |
+
|
| 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 |
# Print the answer
|
| 109 |
# print(answer)
|
| 110 |
|