tommy24 commited on
Commit
d4e098f
·
1 Parent(s): 2d0d304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -94,15 +94,16 @@ def classify(Textbox, image_path, Textbox2, Textbox3):
94
  else:
95
  return "Unauthorized"
96
 
 
 
 
 
 
 
 
97
  iface = gr.Interface(
98
  fn=classify,
99
- inputs = [
100
- gr.inputs.Textbox(label="Textbox",type="text"),
101
- gr.inputs.Image(),
102
- gr.inputs.Textbox(label="Textbox2",type="text"),
103
- gr.inputs.Textbox(label="Textbox3",type="password")
104
- ]
105
-
106
  outputs=gr.outputs.JSON(),
107
  title="Waste Classifier",
108
  description="Upload an image to classify and get disposal instructions."
 
94
  else:
95
  return "Unauthorized"
96
 
97
+ user_inputs = [
98
+ gr.inputs.Textbox(label="Textbox",type="text"),
99
+ gr.inputs.Image(),
100
+ gr.inputs.Textbox(label="Textbox2",type="text"),
101
+ gr.inputs.Textbox(label="Textbox3",type="password")
102
+ ]
103
+
104
  iface = gr.Interface(
105
  fn=classify,
106
+ inputs = user_inputs
 
 
 
 
 
 
107
  outputs=gr.outputs.JSON(),
108
  title="Waste Classifier",
109
  description="Upload an image to classify and get disposal instructions."