Update app.py
Browse files
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
|
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 |
# μ± μ€ν
|