tommy24 commited on
Commit
5c72f2a
·
1 Parent(s): d4e098f

Update app.py

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