YchKhan commited on
Commit
0b07124
Β·
1 Parent(s): fb218a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -462,7 +462,7 @@ def ask_df(df, api_key, model, ui_session_id):
462
  answers.append(complete_answer)
463
  print(complete_answer)
464
  df[question_column] = answers
465
- return df
466
 
467
  def export_df(df, ftype):
468
  fname=secrets.token_urlsafe(16)
@@ -512,7 +512,7 @@ with gr.Blocks() as demo:
512
 
513
 
514
 
515
- btn_clear_df.click(update_df, inputs=[tb_session_id], outputs=df_qna)
516
  btn_fill_answers.click(ask_df, inputs=[df_qna, apikey_input, dd_model, tb_session_id], outputs=df_qna)
517
  btn_export_df.click(export_df, inputs=[df_qna, r_format], outputs=[file_df])
518
  with gr.Tab("Summarize PDF"):
 
462
  answers.append(complete_answer)
463
  print(complete_answer)
464
  df[question_column] = answers
465
+ return df, source
466
 
467
  def export_df(df, ftype):
468
  fname=secrets.token_urlsafe(16)
 
512
 
513
 
514
 
515
+ btn_clear_df.click(update_df, inputs=[tb_session_id], outputs=[df_qna, file_df])
516
  btn_fill_answers.click(ask_df, inputs=[df_qna, apikey_input, dd_model, tb_session_id], outputs=df_qna)
517
  btn_export_df.click(export_df, inputs=[df_qna, r_format], outputs=[file_df])
518
  with gr.Tab("Summarize PDF"):