Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -24,14 +24,14 @@ def response(user_question, table_data):
|
|
24 |
ans = tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
25 |
|
26 |
query_result = {
|
27 |
-
"query":
|
28 |
"answer": ans[0]
|
29 |
}
|
30 |
|
31 |
b = datetime.datetime.now()
|
32 |
print(b - a)
|
33 |
|
34 |
-
return query_result
|
35 |
|
36 |
# Streamlit interface
|
37 |
st.markdown("""
|
|
|
24 |
ans = tokenizer.batch_decode(outputs, skip_special_tokens=True)
|
25 |
|
26 |
query_result = {
|
27 |
+
"query": user_question,
|
28 |
"answer": ans[0]
|
29 |
}
|
30 |
|
31 |
b = datetime.datetime.now()
|
32 |
print(b - a)
|
33 |
|
34 |
+
return query_result
|
35 |
|
36 |
# Streamlit interface
|
37 |
st.markdown("""
|