aiTOYAMA commited on
Commit
36c0384
·
verified ·
1 Parent(s): 5e9dde6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -316,7 +316,7 @@ def run_analysis(question, mode):
316
 
317
  result = ask_paper(question, mode)
318
 
319
- if mode == "表形式":
320
 
321
  df = pd.read_csv(
322
  StringIO(result)
@@ -436,7 +436,10 @@ with gr.Blocks() as app:
436
  variant="primary" # ボタンを目立たせるスタイル(Gradioのプライマリカラーになります)
437
  )
438
 
439
- table_output = gr.Dataframe(visible=False,label="解析結果")
 
 
 
440
 
441
  search_btn.click(
442
  run_analysis,
@@ -464,7 +467,8 @@ with gr.Blocks() as app:
464
  export_history,
465
  inputs=[
466
  question,
467
- answer
 
468
  ],
469
  outputs=download_file
470
  )
 
316
 
317
  result = ask_paper(question, mode)
318
 
319
+ if mode == "表形式分析":
320
 
321
  df = pd.read_csv(
322
  StringIO(result)
 
436
  variant="primary" # ボタンを目立たせるスタイル(Gradioのプライマリカラーになります)
437
  )
438
 
439
+ table_output = gr.Dataframe(
440
+ visible=False,
441
+ label="📊 解析結果(表形式)"
442
+ )
443
 
444
  search_btn.click(
445
  run_analysis,
 
467
  export_history,
468
  inputs=[
469
  question,
470
+ answer,
471
+ table_output
472
  ],
473
  outputs=download_file
474
  )