Spaces:
Sleeping
Sleeping
Muhusystem
commited on
Commit
·
7724540
1
Parent(s):
7e24620
Split text prediction and attribution analysis into separate buttons
Browse files
app.py
CHANGED
@@ -147,5 +147,5 @@ with gr.Blocks() as demo:
|
|
147 |
attribution_button.click(generate_attribution, inputs=[input_image, question_input], outputs=[attribution_image_1, attribution_image_2])
|
148 |
clear_button.click(lambda: (None, "", ""), outputs=[input_image, question_input, prediction_output])
|
149 |
|
150 |
-
#
|
151 |
-
demo.launch(
|
|
|
147 |
attribution_button.click(generate_attribution, inputs=[input_image, question_input], outputs=[attribution_image_1, attribution_image_2])
|
148 |
clear_button.click(lambda: (None, "", ""), outputs=[input_image, question_input, prediction_output])
|
149 |
|
150 |
+
# 启动 Gradio 界面
|
151 |
+
demo.launch()
|