panda1835 commited on
Commit
c670de6
·
verified ·
1 Parent(s): 0db6636

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -121,7 +121,10 @@ def classify(image):
121
 
122
  # Print the formatted time
123
  print(f"{formatted_time} {sorted_result}")
124
- return sorted_result
 
 
 
125
 
126
 
127
  title = "🐢"
@@ -131,5 +134,4 @@ gr.Interface(
131
  inputs=gr.Image(type="pil", label="Input Image"),
132
  outputs=[gr.JSON()],
133
  title=title,
134
- debug=True
135
  ).launch()
 
121
 
122
  # Print the formatted time
123
  print(f"{formatted_time} {sorted_result}")
124
+ return {
125
+ "detection": detection,
126
+ "classification": sorted_result
127
+ }
128
 
129
 
130
  title = "🐢"
 
134
  inputs=gr.Image(type="pil", label="Input Image"),
135
  outputs=[gr.JSON()],
136
  title=title,
 
137
  ).launch()