Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -946,9 +946,9 @@ def interface_selector(selector):
|
|
946 |
|
947 |
def file_selector(selector):
|
948 |
if selector == "low score 차트":
|
949 |
-
return gr.File("./new_bottom_20_percent_images.txt")
|
950 |
elif selector == "high score 차트":
|
951 |
-
return gr.File("./new_top_20_percent_images.txt")
|
952 |
'''
|
953 |
def update_results(model_type):
|
954 |
if "ko_deplot" == model_type:
|
@@ -1103,7 +1103,7 @@ with gr.Blocks(css=css) as iface:
|
|
1103 |
file_upload_option.change(
|
1104 |
file_selector,
|
1105 |
inputs=[file_upload_option],
|
1106 |
-
outputs=[file_uploader]
|
1107 |
)
|
1108 |
|
1109 |
chart_type.change(handle_chart_type_change, inputs=[chart_type,file_uploader],outputs=[image_displayer,image_name])
|
|
|
946 |
|
947 |
def file_selector(selector):
|
948 |
if selector == "low score 차트":
|
949 |
+
return gr.File("./new_bottom_20_percent_images.txt"),"전체"
|
950 |
elif selector == "high score 차트":
|
951 |
+
return gr.File("./new_top_20_percent_images.txt"),"전체"
|
952 |
'''
|
953 |
def update_results(model_type):
|
954 |
if "ko_deplot" == model_type:
|
|
|
1103 |
file_upload_option.change(
|
1104 |
file_selector,
|
1105 |
inputs=[file_upload_option],
|
1106 |
+
outputs=[file_uploader,chart_type]
|
1107 |
)
|
1108 |
|
1109 |
chart_type.change(handle_chart_type_change, inputs=[chart_type,file_uploader],outputs=[image_displayer,image_name])
|