Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -233,9 +233,10 @@ def predict(image):
|
|
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 |
-
|
238 |
-
|
|
|
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 |
+
results = model(img)
|
238 |
+
annotated_img = results.render()[0]
|
239 |
+
return annotated_img
|
240 |
|
241 |
# Gradio interface
|
242 |
demo = gr.Interface(
|