Ganesh43 commited on
Commit
1672ce6
1 Parent(s): 332f69b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  from data_preprocessing import preprocess_csv
3
  from question_answering import answer_query
@@ -17,6 +18,10 @@ if uploaded_file is not None:
17
 
18
  # Preprocess the CSV data
19
  context = preprocess_csv(file_url)
 
 
 
 
20
  else:
21
  # Use default context (optional)
22
  context = "This is a sample context for demonstration purposes. You can upload your own text file or CSV file for context."
 
1
+ import pandas as pd
2
  import streamlit as st
3
  from data_preprocessing import preprocess_csv
4
  from question_answering import answer_query
 
18
 
19
  # Preprocess the CSV data
20
  context = preprocess_csv(file_url)
21
+
22
+ # Display the uploaded CSV data as a table
23
+ st.dataframe(context)
24
+
25
  else:
26
  # Use default context (optional)
27
  context = "This is a sample context for demonstration purposes. You can upload your own text file or CSV file for context."