File size: 615 Bytes
37e6628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
from question_processing import process_question

st.title("Question Answering System")
st.write("Enter your question and get an answer from the pre-trained model.")

# Input field for the user's question
question = st.text_input("Please enter your question:")

# Process the question and display the answer(s) when the user clicks the "Submit" button
if st.button("Submit"):
    if question:
        answers = process_question(question)
        for answer in answers:
            st.write("Answer:", answer)
            st.write("---")
    else:
        st.write("Please enter a question.")