Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -129,13 +129,13 @@ test11 = os.path.join(os.path.dirname(__file__), "data/test11.jpeg")
|
|
129 |
test12 = os.path.join(os.path.dirname(__file__), "data/test12.jpeg")
|
130 |
|
131 |
gr.Interface(fn=predict,
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
|
140 |
|
141 |
a = os.path.join(os.path.dirname(__file__), "data/a.mp4") # Video
|
|
|
129 |
test12 = os.path.join(os.path.dirname(__file__), "data/test12.jpeg")
|
130 |
|
131 |
gr.Interface(fn=predict,
|
132 |
+
inputs=gr.Image(type="pil"),
|
133 |
+
outputs=gr.Image(type="pil"),
|
134 |
+
title="Image Prediction Interface",
|
135 |
+
description="Upload a Image for prediction",
|
136 |
+
examples=[[test1],[test2],[test3],[test4],[test5],[test6],[test7],[test8],[test9],[test10],[test11],[test12],],
|
137 |
+
cache_examples=True
|
138 |
+
).launch(share=True)
|
139 |
|
140 |
|
141 |
a = os.path.join(os.path.dirname(__file__), "data/a.mp4") # Video
|