YchKhan commited on
Commit
394c1b2
1 Parent(s): 4e2fbfe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -477,7 +477,7 @@ def ask_df(df, api_key, model, ui_session_id):
477
  answers.append(complete_answer)
478
  print(complete_answer)
479
  df[question_column] = answers
480
- return df, sources_file
481
 
482
  def export_df(df, ftype):
483
  fname=secrets.token_urlsafe(16)
@@ -528,7 +528,7 @@ with gr.Blocks() as demo:
528
 
529
 
530
  btn_clear_df.click(update_df, inputs=[tb_session_id], outputs=df_qna)
531
- btn_fill_answers.click(ask_df, inputs=[df_qna, apikey_input, dd_model, tb_session_id], outputs=[df_qna, file_df])
532
  btn_export_df.click(export_df, inputs=[df_qna, r_format], outputs=[file_df])
533
  with gr.Tab("Summarize PDF"):
534
  with gr.Column():
 
477
  answers.append(complete_answer)
478
  print(complete_answer)
479
  df[question_column] = answers
480
+ return df
481
 
482
  def export_df(df, ftype):
483
  fname=secrets.token_urlsafe(16)
 
528
 
529
 
530
  btn_clear_df.click(update_df, inputs=[tb_session_id], outputs=df_qna)
531
+ btn_fill_answers.click(ask_df, inputs=[df_qna, apikey_input, dd_model, tb_session_id], outputs=df_qna)
532
  btn_export_df.click(export_df, inputs=[df_qna, r_format], outputs=[file_df])
533
  with gr.Tab("Summarize PDF"):
534
  with gr.Column():