keremberke commited on
Commit
734f9b3
1 Parent(s): 30bf5c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
134
  outputs=detect_output,
135
  fn=predict,
136
  cache_examples=False,
137
- run_on_click=True,
138
  )
139
  with gr.Column():
140
  gr.Examples(
@@ -143,7 +143,7 @@ with gr.Blocks() as demo:
143
  outputs=detect_output,
144
  fn=predict,
145
  cache_examples=False,
146
- run_on_click=True,
147
  )
148
  with gr.Tab("Segmentation"):
149
  with gr.Row():
@@ -163,7 +163,7 @@ with gr.Blocks() as demo:
163
  outputs=segment_output,
164
  fn=predict,
165
  cache_examples=False,
166
- run_on_click=True,
167
  )
168
  with gr.Column():
169
  gr.Examples(
@@ -172,7 +172,7 @@ with gr.Blocks() as demo:
172
  outputs=segment_output,
173
  fn=predict,
174
  cache_examples=False,
175
- run_on_click=True,
176
  )
177
  with gr.Tab("Classification"):
178
  with gr.Row():
@@ -194,7 +194,7 @@ with gr.Blocks() as demo:
194
  outputs=classify_output,
195
  fn=predict,
196
  cache_examples=False,
197
- run_on_click=True,
198
  )
199
  with gr.Column():
200
  gr.Examples(
@@ -203,7 +203,7 @@ with gr.Blocks() as demo:
203
  outputs=classify_output,
204
  fn=predict,
205
  cache_examples=False,
206
- run_on_click=True,
207
  )
208
 
209
  detect_button.click(
 
134
  outputs=detect_output,
135
  fn=predict,
136
  cache_examples=False,
137
+ run_on_click=False,
138
  )
139
  with gr.Column():
140
  gr.Examples(
 
143
  outputs=detect_output,
144
  fn=predict,
145
  cache_examples=False,
146
+ run_on_click=False,
147
  )
148
  with gr.Tab("Segmentation"):
149
  with gr.Row():
 
163
  outputs=segment_output,
164
  fn=predict,
165
  cache_examples=False,
166
+ run_on_click=False,
167
  )
168
  with gr.Column():
169
  gr.Examples(
 
172
  outputs=segment_output,
173
  fn=predict,
174
  cache_examples=False,
175
+ run_on_click=False,
176
  )
177
  with gr.Tab("Classification"):
178
  with gr.Row():
 
194
  outputs=classify_output,
195
  fn=predict,
196
  cache_examples=False,
197
+ run_on_click=False,
198
  )
199
  with gr.Column():
200
  gr.Examples(
 
203
  outputs=classify_output,
204
  fn=predict,
205
  cache_examples=False,
206
+ run_on_click=False,
207
  )
208
 
209
  detect_button.click(