Spaces:
Sleeping
Sleeping
Commit
·
f160696
1
Parent(s):
0ae36e9
Update app.py
Browse files
app.py
CHANGED
@@ -48,16 +48,16 @@ def classify_image(image):
|
|
48 |
return output
|
49 |
|
50 |
inputs = gr.inputs.Image(label="Upload an image")
|
51 |
-
outputs = gr.outputs.HTML()
|
52 |
|
53 |
title = "<h1 style='text-align: center;'>Image Classifier</h1>"
|
54 |
description = "Upload an image and get the predicted class."
|
55 |
-
css_code='body{background-image:url("file=wave.mp4");}'
|
56 |
|
57 |
gr.Interface(fn=classify_image,
|
58 |
inputs=inputs,
|
59 |
outputs=outputs,
|
60 |
title=title,
|
61 |
examples=["00_plane.jpg", "01_car.jpg", "02_bird.jpg", "03_cat.jpg", "04_deer.jpg"],
|
62 |
-
css=css_code,
|
63 |
description=description).launch()
|
|
|
48 |
return output
|
49 |
|
50 |
inputs = gr.inputs.Image(label="Upload an image")
|
51 |
+
outputs = gr.outputs.HTML(label="Output")
|
52 |
|
53 |
title = "<h1 style='text-align: center;'>Image Classifier</h1>"
|
54 |
description = "Upload an image and get the predicted class."
|
55 |
+
# css_code='body{background-image:url("file=wave.mp4");}'
|
56 |
|
57 |
gr.Interface(fn=classify_image,
|
58 |
inputs=inputs,
|
59 |
outputs=outputs,
|
60 |
title=title,
|
61 |
examples=["00_plane.jpg", "01_car.jpg", "02_bird.jpg", "03_cat.jpg", "04_deer.jpg"],
|
62 |
+
# css=css_code,
|
63 |
description=description).launch()
|