Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def Prediction_VGG16(image):
|
|
34 |
|
35 |
return {k:v for k,v in zip(classes,prediction)}
|
36 |
|
37 |
-
|
38 |
|
39 |
thumbnail = "https://github.com/gradio-app/hub-openpose/blob/master/screenshot.png?raw=true"
|
40 |
-
demo = gr.Interface(Prediction_VGG16, gr.inputs.Image(shape=(224,224)),gr.Label(num_top_classes=2),theme="dark-peach",thumbnail =thumbnail )
|
41 |
|
42 |
demo.launch()
|
|
|
34 |
|
35 |
return {k:v for k,v in zip(classes,prediction)}
|
36 |
|
37 |
+
css_code = 'body{background-image:url("https://picsum.photos/seed/picsum/200/300");}'
|
38 |
|
39 |
thumbnail = "https://github.com/gradio-app/hub-openpose/blob/master/screenshot.png?raw=true"
|
40 |
+
demo = gr.Interface(Prediction_VGG16, gr.inputs.Image(shape=(224,224)),gr.Label(num_top_classes=2),css= css_code ,theme="dark-peach",thumbnail =thumbnail )
|
41 |
|
42 |
demo.launch()
|