Update app.py
Browse files
app.py
CHANGED
@@ -29,10 +29,6 @@ def caption(file, ext):
|
|
29 |
def image_predict(image):
|
30 |
return caption(image, "png")
|
31 |
title = "Generating Captions For Images Using ImCap v1"
|
32 |
-
description = "ImCap v1 uses a varity of image caption generators, then plugs it into LLaMA 2 to get a final caption. <a href="https://huggingface.co/spaces/SFP/ImCap_v1?duplicate=true"
|
33 |
-
style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
|
34 |
-
<img style="margin-bottom: 0em;display: inline;margin-top: -.25em;"
|
35 |
-
src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
36 |
-
if there is a queue (free CPU works fine as it uses apis).</p>"
|
37 |
iface = gr.Interface(image_predict, inputs=gr.Image(type="pil"), outputs="label", flagging_options=[], title=title, description=description)
|
38 |
iface.launch()
|
|
|
29 |
def image_predict(image):
|
30 |
return caption(image, "png")
|
31 |
title = "Generating Captions For Images Using ImCap v1"
|
32 |
+
description = "ImCap v1 uses a varity of image caption generators, then plugs it into LLaMA 2 to get a final caption. <a href="https://huggingface.co/spaces/SFP/ImCap_v1?duplicate=true"style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank"><img style="margin-bottom: 0em;display: inline;margin-top: -.25em;"src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>if there is a queue (free CPU works fine as it uses apis).</p>"
|
|
|
|
|
|
|
|
|
33 |
iface = gr.Interface(image_predict, inputs=gr.Image(type="pil"), outputs="label", flagging_options=[], title=title, description=description)
|
34 |
iface.launch()
|