egrace479 commited on
Commit
3f7645f
1 Parent(s): c3541f0

comment-out flagging

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -199,7 +199,7 @@ if __name__ == "__main__":
199
  show_label=True,
200
  value=None,
201
  )
202
- open_domain_flag_btn = gr.Button("Flag Mistake", variant="primary")
203
 
204
  with gr.Row():
205
  gr.Examples(
@@ -209,7 +209,7 @@ if __name__ == "__main__":
209
  fn=open_domain_classification,
210
  outputs=[open_domain_output],
211
  )
212
-
213
  open_domain_callback = gr.HuggingFaceDatasetSaver(
214
  hf_token, "bioclip-demo-open-domain-mistakes", private=True
215
  )
@@ -223,7 +223,7 @@ if __name__ == "__main__":
223
  None,
224
  preprocess=False,
225
  )
226
-
227
  with gr.Tab("Zero-Shot"):
228
  with gr.Row():
229
  with gr.Column():
@@ -240,7 +240,7 @@ if __name__ == "__main__":
240
  zero_shot_output = gr.Label(
241
  num_top_classes=k, label="Prediction", show_label=True
242
  )
243
- zero_shot_flag_btn = gr.Button("Flag Mistake", variant="primary")
244
 
245
  with gr.Row():
246
  gr.Examples(
@@ -250,7 +250,7 @@ if __name__ == "__main__":
250
  fn=zero_shot_classification,
251
  outputs=[zero_shot_output],
252
  )
253
-
254
  zero_shot_callback = gr.HuggingFaceDatasetSaver(
255
  hf_token, "bioclip-demo-zero-shot-mistakes", private=True
256
  )
@@ -263,7 +263,7 @@ if __name__ == "__main__":
263
  None,
264
  preprocess=False,
265
  )
266
-
267
  rank_dropdown.change(
268
  fn=change_output, inputs=rank_dropdown, outputs=[open_domain_output]
269
  )
 
199
  show_label=True,
200
  value=None,
201
  )
202
+ # open_domain_flag_btn = gr.Button("Flag Mistake", variant="primary")
203
 
204
  with gr.Row():
205
  gr.Examples(
 
209
  fn=open_domain_classification,
210
  outputs=[open_domain_output],
211
  )
212
+ '''
213
  open_domain_callback = gr.HuggingFaceDatasetSaver(
214
  hf_token, "bioclip-demo-open-domain-mistakes", private=True
215
  )
 
223
  None,
224
  preprocess=False,
225
  )
226
+ '''
227
  with gr.Tab("Zero-Shot"):
228
  with gr.Row():
229
  with gr.Column():
 
240
  zero_shot_output = gr.Label(
241
  num_top_classes=k, label="Prediction", show_label=True
242
  )
243
+ # zero_shot_flag_btn = gr.Button("Flag Mistake", variant="primary")
244
 
245
  with gr.Row():
246
  gr.Examples(
 
250
  fn=zero_shot_classification,
251
  outputs=[zero_shot_output],
252
  )
253
+ '''
254
  zero_shot_callback = gr.HuggingFaceDatasetSaver(
255
  hf_token, "bioclip-demo-zero-shot-mistakes", private=True
256
  )
 
263
  None,
264
  preprocess=False,
265
  )
266
+ '''
267
  rank_dropdown.change(
268
  fn=change_output, inputs=rank_dropdown, outputs=[open_domain_output]
269
  )