Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,10 @@ else:
|
|
75 |
# Use TAPAS model to process the question
|
76 |
result = tqa(table=df, query=question)
|
77 |
|
|
|
|
|
|
|
|
|
78 |
# Check if TAPAS is returning the expected answer
|
79 |
answer = result.get('answer', None)
|
80 |
if answer:
|
|
|
75 |
# Use TAPAS model to process the question
|
76 |
result = tqa(table=df, query=question)
|
77 |
|
78 |
+
# Debugging: Output TAPAS raw response
|
79 |
+
st.write("TAPAS Raw Output:")
|
80 |
+
st.write(result) # Show the raw output from TAPAS
|
81 |
+
|
82 |
# Check if TAPAS is returning the expected answer
|
83 |
answer = result.get('answer', None)
|
84 |
if answer:
|