rajkumarrawal commited on
Commit
7176315
·
1 Parent(s): c3fca84

refactor: simplify Gradio interface by removing allow_flagging

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -133,11 +133,10 @@ def predict_from_url(url):
133
 
134
  # Gradio interface
135
  demo = gr.Interface(
136
- fn=predict_from_url,
137
  inputs=gr.Textbox(label="Enter Image URL"),
138
- outputs=gr.Label(label="Classification Results"),
139
- title="Fashion Item Classifier",
140
- allow_flagging="never"
141
  )
142
 
143
  # Launch the interface
 
133
 
134
  # Gradio interface
135
  demo = gr.Interface(
136
+ fn=predict_from_url,
137
  inputs=gr.Textbox(label="Enter Image URL"),
138
+ outputs=gr.Label(label="Classification Results"),
139
+ title="Fashion Item Classifier"
 
140
  )
141
 
142
  # Launch the interface