Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,18 +7,16 @@ def predict(image):
|
|
| 7 |
r_image = yolo.detect_image(image)
|
| 8 |
return r_image
|
| 9 |
|
| 10 |
-
|
| 11 |
title = "MASFNet: Multi-scale Adaptive Sampling Fusion Network for Object Detection in Adverse Weather"
|
| 12 |
-
description = ""
|
| 13 |
-
|
| 14 |
-
<img src="https://huggingface.co/spaces/course-demos/Rick_and_Morty_QA/resolve/main/rick.png" width=200px>
|
| 15 |
-
"""
|
| 16 |
-
|
| 17 |
-
article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of."
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
fn=predict,
|
| 21 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
| 22 |
outputs=gr.Image(type="pil", label="Prediction Result"),
|
| 23 |
title=title,
|
| 24 |
description=description,
|
|
|
|
| 7 |
r_image = yolo.detect_image(image)
|
| 8 |
return r_image
|
| 9 |
|
|
|
|
| 10 |
title = "MASFNet: Multi-scale Adaptive Sampling Fusion Network for Object Detection in Adverse Weather"
|
| 11 |
+
description = ""
|
| 12 |
+
article = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
gr.Interface(
|
| 15 |
fn=predict,
|
| 16 |
+
inputs=[
|
| 17 |
+
gr.Image(type="pil", label="Upload an Image"),
|
| 18 |
+
gr.Button("Submit")
|
| 19 |
+
],
|
| 20 |
outputs=gr.Image(type="pil", label="Prediction Result"),
|
| 21 |
title=title,
|
| 22 |
description=description,
|