PolarisFTL commited on
Commit
1969532
·
verified ·
1 Parent(s): d9ccd61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
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
- The bot was trained to answer questions based on Rick and Morty dialogues. Ask Rick anything!
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=gr.Image(type="pil", label="Upload an Image"),
 
 
 
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,