Spaces:
Running
on
Zero
Running
on
Zero
gokaygokay
commited on
Commit
•
ca16909
1
Parent(s):
fc22db1
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,8 @@ model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).t
|
|
21 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
22 |
|
23 |
|
|
|
|
|
24 |
colormap = ['blue','orange','green','purple','brown','pink','gray','olive','cyan','red',
|
25 |
'lime','indigo','violet','aqua','magenta','coral','gold','tan','skyblue']
|
26 |
|
@@ -175,7 +177,7 @@ css = """
|
|
175 |
"""
|
176 |
|
177 |
with gr.Blocks(css=css) as demo:
|
178 |
-
gr.
|
179 |
with gr.Tab(label="Florence-2 Image Captioning"):
|
180 |
with gr.Row():
|
181 |
with gr.Column():
|
|
|
21 |
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
|
22 |
|
23 |
|
24 |
+
DESCRIPTION = "# [Florence-2 Demo](https://huggingface.co/microsoft/Florence-2-large)"
|
25 |
+
|
26 |
colormap = ['blue','orange','green','purple','brown','pink','gray','olive','cyan','red',
|
27 |
'lime','indigo','violet','aqua','magenta','coral','gold','tan','skyblue']
|
28 |
|
|
|
177 |
"""
|
178 |
|
179 |
with gr.Blocks(css=css) as demo:
|
180 |
+
gr.Markdown(DESCRIPTION)
|
181 |
with gr.Tab(label="Florence-2 Image Captioning"):
|
182 |
with gr.Row():
|
183 |
with gr.Column():
|