RohanKarthikeyan commited on
Commit
ca3a4f2
·
verified ·
1 Parent(s): df0ecee

Removed comments

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -190,21 +190,9 @@ with gr.Blocks(theme=app_theme) as demo:
190
 
191
  # Update custom_entity and warning visibility based on dropdown selection
192
  target_entity.change(
193
- fn=toggle_custom_box, inputs=target_entity, outputs=[custom_entity, warning]
 
194
  )
195
- # # Event to show the custom entity field only when 'Custom' is selected
196
- # target_entity.change(
197
- # lambda x: custom_entity.visible if x == "Custom" else False,
198
- # target_entity,
199
- # custom_entity,
200
- # )
201
-
202
- # # Add a warning message about custom entities
203
- # with gr.Row():
204
- # warning = gr.Markdown(
205
- # "**Note:** This tool is optimized and tested for Disease, Tissue, and Cell Type entities. "
206
- # "While you can input custom entities, results may vary in accuracy and reliability."
207
- # )
208
 
209
  # Add a loading indicator
210
  with gr.Row():
 
190
 
191
  # Update custom_entity and warning visibility based on dropdown selection
192
  target_entity.change(
193
+ fn=toggle_custom_box, inputs=target_entity, outputs=[custom_entity, warning],
194
+ api_name=False
195
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
197
  # Add a loading indicator
198
  with gr.Row():