Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,13 +20,14 @@ if uploaded_file is not None and question:
|
|
20 |
try:
|
21 |
# Read table from CSV
|
22 |
table = pd.read_csv(uploaded_file)
|
|
|
23 |
|
24 |
# Display the table
|
25 |
st.write("Uploaded Table:")
|
26 |
st.dataframe(table)
|
27 |
|
28 |
# Convert DataFrame to the format expected by TAPAS
|
29 |
-
table_data = table.
|
30 |
st.write(type(table_data))
|
31 |
|
32 |
# Get answer
|
|
|
20 |
try:
|
21 |
# Read table from CSV
|
22 |
table = pd.read_csv(uploaded_file)
|
23 |
+
st.write(type(table))
|
24 |
|
25 |
# Display the table
|
26 |
st.write("Uploaded Table:")
|
27 |
st.dataframe(table)
|
28 |
|
29 |
# Convert DataFrame to the format expected by TAPAS
|
30 |
+
table_data = table.as_type(str)
|
31 |
st.write(type(table_data))
|
32 |
|
33 |
# Get answer
|