Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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=
|
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():
|