fschwartzer commited on
Commit
3cf03e0
1 Parent(s): 9e11403

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -11,7 +11,8 @@ print(df.head())
11
  def response(user_question):
12
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
13
  resposta = tqa(table=df, query=user_question)['cells'][0]
14
- return print(resposta)
 
15
 
16
  # Streamlit interface
17
  st.markdown("""
 
11
  def response(user_question):
12
  tqa = pipeline(task="table-question-answering", model="google/tapas-large-finetuned-wtq")
13
  resposta = tqa(table=df, query=user_question)['cells'][0]
14
+ print(resposta)
15
+ return str(resposta)
16
 
17
  # Streamlit interface
18
  st.markdown("""