Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,12 +22,12 @@ def make_inference(query):
|
|
22 |
docs = docsearch.get_relevant_documents(query)
|
23 |
return(chain.run(input_documents=docs, question=query))
|
24 |
|
25 |
-
|
26 |
-
# Title of the web application
|
27 |
-
st.title('🗣️TalkToMyDoc📄')
|
28 |
-
|
29 |
-
# Text input widget
|
30 |
-
user_input = st.text_input('Enter a query:', '')
|
31 |
-
|
32 |
-
# Displaying output directly below the input field
|
33 |
-
st.write('Answer:', make_inference(user_input))
|
|
|
22 |
docs = docsearch.get_relevant_documents(query)
|
23 |
return(chain.run(input_documents=docs, question=query))
|
24 |
|
25 |
+
if __name__ == "__main__":
|
26 |
+
# Title of the web application
|
27 |
+
st.title('🗣️TalkToMyDoc📄')
|
28 |
+
|
29 |
+
# Text input widget
|
30 |
+
user_input = st.text_input('Enter a query:', '')
|
31 |
+
|
32 |
+
# Displaying output directly below the input field
|
33 |
+
st.write('Answer:', make_inference(user_input))
|