Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def classify(Textbox, image_path, Textbox2, Textbox3):
|
|
94 |
else:
|
95 |
return "Unauthorized"
|
96 |
|
97 |
-
|
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 =
|
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."
|