A Streamlit application that uses the Hugging Face Transformers library to perform table-based question answering. Users can upload a CSV file, ask questions about the data in the table, and get answers using the TAPAS model.
- Upload a CSV file.
- Ask questions about the table data.
- Get answers using the TAPAS model.
-
Start the Streamlit app.
-
Upload a CSV file: Click the "Upload a CSV file" button and select a CSV file from your local machine. The app will read and load the data from the CSV file into a DataFrame.
-
View the uploaded data: The uploaded CSV data is displayed in a table format, allowing you to review its contents.
-
Enter your question: In the "Enter your question" text input field, type a question related to the data in the uploaded table.
-
Ask the question: Click the "Ask" button to submit your question.
-
Get the answer: The TAPAS model will process the table and your question to provide an answer. The answer is displayed under the "Answer" subheader.
To run the app locally, follow these steps:
-
Clone the repository:
git clone https://github.com/abdullawagih1/Table-Question-Answering-using-HuggingFace.git