ovi054 commited on
Commit
49c6551
·
verified ·
1 Parent(s): a9a7d18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -18,12 +18,6 @@ florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base',
18
 
19
  # api_key = os.getenv("HF_READ_TOKEN")
20
 
21
- description_text = """<div style="display:flex;column-gap:4px;">
22
- <a href="https://huggingface.co/ovi054">
23
- <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
24
- </a>
25
- </div>"""
26
-
27
  def generate_caption(image):
28
  if not isinstance(image, Image.Image):
29
  image = Image.fromarray(image)
@@ -69,7 +63,6 @@ io = gr.Interface(generate_caption,
69
  inputs=[gr.Image(label="Input Image")],
70
  outputs = [gr.Textbox(label="Output Prompt", lines=2, show_copy_button = True),
71
  # gr.Image(label="Output Image")
72
- ],
73
- description = description_text
74
  )
75
  io.launch(debug=True)
 
18
 
19
  # api_key = os.getenv("HF_READ_TOKEN")
20
 
 
 
 
 
 
 
21
  def generate_caption(image):
22
  if not isinstance(image, Image.Image):
23
  image = Image.fromarray(image)
 
63
  inputs=[gr.Image(label="Input Image")],
64
  outputs = [gr.Textbox(label="Output Prompt", lines=2, show_copy_button = True),
65
  # gr.Image(label="Output Image")
66
+ ]
 
67
  )
68
  io.launch(debug=True)