Spaces:
SFP
/
Runtime error

SFP commited on
Commit
4c906a5
·
1 Parent(s): 6c5b35d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
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 = "Generating Captions For Images Using ImCap v1"
33
- description = """ImCap v1 uses a varity of image caption generators, then plugs it into LLaMA 2 to get a final caption.<br/>
34
- <a href="https://huggingface.co/spaces/SFP/ImCap_v1?duplicate=true"
35
- style="display: inline-block;margin-top: .5em;margin-right: .25em;" target="_blank">
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()