Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -233,9 +233,9 @@ def predict(image):
|
|
233 |
output = model(img_tensor)
|
234 |
|
235 |
# Process output (adjust based on your model's format)
|
236 |
-
|
237 |
-
annotated_img = output.render()[0]
|
238 |
-
return annotated_img
|
239 |
|
240 |
# Gradio interface
|
241 |
demo = gr.Interface(
|
|
|
233 |
output = model(img_tensor)
|
234 |
|
235 |
# Process output (adjust based on your model's format)
|
236 |
+
return output # or post-process the results as needed
|
237 |
+
# annotated_img = output.render()[0]
|
238 |
+
# return annotated_img
|
239 |
|
240 |
# Gradio interface
|
241 |
demo = gr.Interface(
|