kerzel commited on
Commit
6932fac
·
1 Parent(s): d68770e

avoid output image related bug

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -160,7 +160,7 @@ with gr.Blocks() as app:
160
 
161
 
162
  button = gr.Button("Classify")
163
- output_image = gr.Image()
164
 
165
  download_image_btn = gr.DownloadButton(label="Download Image", value=IMAGE_PATH, interactive=False)
166
  download_csv_btn = gr.DownloadButton(label="Download Damage List", value=CSV_PATH, interactive=False)
@@ -170,13 +170,14 @@ with gr.Blocks() as app:
170
  button.click(
171
  damage_classification,
172
  inputs=[image_input, cluster_threshold_input, model1_threshold_input, model2_threshold_input],
173
- outputs=[output_image]
174
  )
175
 
176
 
177
 
178
 
179
 
 
180
  # simple interface, no title, etc
181
  # app = gr.Interface(damage_classification,
182
  # inputs=[gr.Image(),
 
160
 
161
 
162
  button = gr.Button("Classify")
163
+ #output_image = gr.Image()
164
 
165
  download_image_btn = gr.DownloadButton(label="Download Image", value=IMAGE_PATH, interactive=False)
166
  download_csv_btn = gr.DownloadButton(label="Download Damage List", value=CSV_PATH, interactive=False)
 
170
  button.click(
171
  damage_classification,
172
  inputs=[image_input, cluster_threshold_input, model1_threshold_input, model2_threshold_input],
173
+ outputs=gr.Image(label="Output Image")
174
  )
175
 
176
 
177
 
178
 
179
 
180
+
181
  # simple interface, no title, etc
182
  # app = gr.Interface(damage_classification,
183
  # inputs=[gr.Image(),