Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,9 @@ def get_answers(question, context):
|
|
19 |
formatted_answer = format_response(start_index, end_index - 1, context[start_index:end_index].tolist())
|
20 |
return formatted_answer
|
21 |
|
|
|
|
|
|
|
22 |
def interactive():
|
23 |
print("Hi! I am a simple AI chatbot built using Hugging Face and Streamlit.")
|
24 |
query = ""
|
@@ -37,9 +40,6 @@ def interactive():
|
|
37 |
except Exception as e:
|
38 |
st.write(f"Error occurred: {str(e)}")
|
39 |
|
40 |
-
def update_displayed_query(query):
|
41 |
-
st.session_state['current_query'] = query
|
42 |
-
|
43 |
if __name__ == "__main__":
|
44 |
st.set_page_config(layout="wide")
|
45 |
st.title('AI Chatbot Built Using Hugging Face and Streamlit')
|
|
|
19 |
formatted_answer = format_response(start_index, end_index - 1, context[start_index:end_index].tolist())
|
20 |
return formatted_answer
|
21 |
|
22 |
+
def update_displayed_query(query):
|
23 |
+
st.session_state['current_query'] = query
|
24 |
+
|
25 |
def interactive():
|
26 |
print("Hi! I am a simple AI chatbot built using Hugging Face and Streamlit.")
|
27 |
query = ""
|
|
|
40 |
except Exception as e:
|
41 |
st.write(f"Error occurred: {str(e)}")
|
42 |
|
|
|
|
|
|
|
43 |
if __name__ == "__main__":
|
44 |
st.set_page_config(layout="wide")
|
45 |
st.title('AI Chatbot Built Using Hugging Face and Streamlit')
|