Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ model.to("cuda:0")
|
|
20 |
PLACEHOLDER = """
|
21 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
22 |
<img src="https://cdn-thumbnails.huggingface.co/social-thumbnails/models/microsoft/Phi-3-vision-128k-instruct.png" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
|
23 |
-
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Microsoft's Phi3
|
24 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Phi-3-Vision is a 4.2B parameter multimodal model that brings together language and vision capabilities.</p>
|
25 |
</div>
|
26 |
"""
|
@@ -97,7 +97,7 @@ with gr.Blocks(fill_height=True, ) as demo:
|
|
97 |
{"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
|
98 |
{"text": "I want to find a seat close to windows, where can I sit?", "files": ["./office1.jpg"]},
|
99 |
],
|
100 |
-
description="Try [
|
101 |
stop_btn="Stop Generation",
|
102 |
multimodal=True,
|
103 |
textbox=chat_input,
|
|
|
20 |
PLACEHOLDER = """
|
21 |
<div style="padding: 30px; text-align: center; display: flex; flex-direction: column; align-items: center;">
|
22 |
<img src="https://cdn-thumbnails.huggingface.co/social-thumbnails/models/microsoft/Phi-3-vision-128k-instruct.png" style="width: 80%; max-width: 550px; height: auto; opacity: 0.55; ">
|
23 |
+
<h1 style="font-size: 28px; margin-bottom: 2px; opacity: 0.55;">Microsoft's Phi3 Vision</h1>
|
24 |
<p style="font-size: 18px; margin-bottom: 2px; opacity: 0.65;">Phi-3-Vision is a 4.2B parameter multimodal model that brings together language and vision capabilities.</p>
|
25 |
</div>
|
26 |
"""
|
|
|
97 |
{"text": "Count the number of apples.", "files": ["./setofmark6.png"]},
|
98 |
{"text": "I want to find a seat close to windows, where can I sit?", "files": ["./office1.jpg"]},
|
99 |
],
|
100 |
+
description="Try the [Phi3-Vision model](https://huggingface.co/microsoft/Phi-3-vision-128k-instruct) from Microsoft. Upload an image and start chatting about it, or simply try one of the examples below. If you won't upload an image, you will receive an error. This is not the official demo.",
|
101 |
stop_btn="Stop Generation",
|
102 |
multimodal=True,
|
103 |
textbox=chat_input,
|