wanda222 commited on
Commit
2dadf80
Β·
verified Β·
1 Parent(s): a4fb696

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -112,21 +112,14 @@ with gr.Blocks() as demo:
112
 
113
  with gr.Column():
114
  json_output = gr.Textbox(label="πŸ“„ μΆ”μΆœλœ JSON", lines=20)
115
- table_output = gr.Dataframe(label="πŸ“‹ μΆ”μΆœλœ 정보 (ν‘œ ν˜•νƒœ)", interactive=False)
116
- download_btn = gr.Button("πŸ“₯ CSV λ‹€μš΄λ‘œλ“œ λ°›κΈ°")
117
- file_output = gr.File(label="", visible=False)
118
 
119
  extract_btn.click(
120
  fn=extract_info,
121
  inputs=[image_input, api_key_input],
122
- outputs=[json_output, table_output, file_output]
123
  )
124
 
125
- download_btn.click(
126
- fn=lambda x: x,
127
- inputs=file_output,
128
- outputs=file_output
129
- )
130
 
131
 
132
  # μ•± μ‹€ν–‰
 
112
 
113
  with gr.Column():
114
  json_output = gr.Textbox(label="πŸ“„ μΆ”μΆœλœ JSON", lines=20)
115
+ table_output = gr.Dataframe(label="πŸ“‹ μΆ”μΆœλœ 정보 (ν‘œ ν˜•νƒœ)", interactive=False)
 
 
116
 
117
  extract_btn.click(
118
  fn=extract_info,
119
  inputs=[image_input, api_key_input],
120
+ outputs=[json_output, table_output]
121
  )
122
 
 
 
 
 
 
123
 
124
 
125
  # μ•± μ‹€ν–‰