Update app.py
Browse files
app.py
CHANGED
@@ -40,17 +40,30 @@ def get_text():
|
|
40 |
input_text = st.text_input("You: "," ", key="input")
|
41 |
return input_text
|
42 |
|
43 |
-
|
44 |
-
message(" ",is_user=True)
|
45 |
-
|
46 |
-
question = get_text()
|
47 |
-
# while True:
|
48 |
-
if st.button("Send"):
|
49 |
-
# Generate the answer using the model
|
50 |
-
message(question,is_user=True)
|
51 |
-
answer = qa_model(question=question, context=context)
|
52 |
-
message(answer)
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
# Print the answer
|
56 |
# print(answer)
|
|
|
40 |
input_text = st.text_input("You: "," ", key="input")
|
41 |
return input_text
|
42 |
|
43 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
+
# message("Hello, How can I help you?")
|
46 |
+
# message(" ",is_user=True)
|
47 |
+
|
48 |
+
# question = get_text()
|
49 |
+
# # while True:
|
50 |
+
# if st.button("Send"):
|
51 |
+
# # Generate the answer using the model
|
52 |
+
# message(question,is_user=True)
|
53 |
+
# answer = qa_model(question=question, context=context)
|
54 |
+
# message(answer)
|
55 |
+
|
56 |
+
# Provide the context and question for the model to answer
|
57 |
+
# context = "Paris is the capital and most populous city of France."
|
58 |
+
# question = "What is the capital of France?"
|
59 |
+
question = "tell me about i love sousse"
|
60 |
+
# Generate the answer using the model
|
61 |
+
st.write(question)
|
62 |
+
|
63 |
+
answer = qa_model(question=question, context=context)
|
64 |
+
|
65 |
+
# Print the answer
|
66 |
+
st.write(answer)
|
67 |
|
68 |
# Print the answer
|
69 |
# print(answer)
|