Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,7 @@ def caption(file, ext):
|
|
29 |
def image_predict(image):
|
30 |
return caption(image, "png")
|
31 |
examples = [["penguin.png"], ["stop.png"], ["stick.png"]]
|
32 |
-
title = "
|
33 |
-
description = """
|
34 |
-
|
35 |
-
|
36 |
-
<img style="margin-bottom: 0em;display: inline;margin-top: -.25em;"
|
37 |
-
src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
38 |
-
if there is a queue (free CPU works fine as it uses apis)."""
|
39 |
-
iface = gr.Interface(image_predict, inputs=gr.Image(type="pil"), outputs="label", flagging_options=[], title=title, examples=examples, description=description)
|
40 |
-
iface.launch(show_api=False)
|
|
|
29 |
def image_predict(image):
|
30 |
return caption(image, "png")
|
31 |
examples = [["penguin.png"], ["stop.png"], ["stick.png"]]
|
32 |
+
title = "ImCap v1 API"
|
33 |
+
description = """Docs goes here"""
|
34 |
+
iface = gr.Interface(image_predict, inputs=gr.Image(type="pil"), outputs="label", flagging_options=[], title=title, description=description)
|
35 |
+
iface.launch()
|
|
|
|
|
|
|
|
|
|