ovi054 commited on
Commit
17861db
·
verified ·
1 Parent(s): 3e84585

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -18,6 +18,15 @@ florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base',
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,6 +72,7 @@ io = gr.Interface(generate_caption,
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)
 
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/spaces/ovi054/face-swap-pro?duplicate=true">
23
+ <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-sm.svg" alt="Duplicate this Space">
24
+ </a>
25
+ <a href="https://huggingface.co/ovi054">
26
+ <img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/follow-me-on-HF-sm-dark.svg" alt="Follow me on HF">
27
+ </a>
28
+ </div>"""
29
+
30
  def generate_caption(image):
31
  if not isinstance(image, Image.Image):
32
  image = Image.fromarray(image)
 
72
  inputs=[gr.Image(label="Input Image")],
73
  outputs = [gr.Textbox(label="Output Prompt", lines=2, show_copy_button = True),
74
  # gr.Image(label="Output Image")
75
+ ],
76
+ description = description_text
77
  )
78
  io.launch(debug=True)