Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -171,11 +171,11 @@ PLACEHOLDER = """
|
|
171 |
</center>
|
172 |
"""
|
173 |
|
174 |
-
TITLE = "<h1><center>Phi-3.5
|
175 |
|
176 |
EXPLANATION = """
|
177 |
<div style="text-align: center; margin-top: 20px;">
|
178 |
-
<p>This app supports
|
179 |
<p>Phi-3.5-vision is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision. The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.</p>
|
180 |
<p>Phi-3.5-mini is a lightweight, state-of-the-art open model built upon datasets used for Phi-3 - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data. The model belongs to the Phi-3 model family and supports 128K token context length. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning, proximal policy optimization, and direct preference optimization to ensure precise instruction adherence and robust safety measures.</p>
|
181 |
</div>
|
@@ -183,13 +183,9 @@ EXPLANATION = """
|
|
183 |
|
184 |
footer = """
|
185 |
<div style="text-align: center; margin-top: 20px;">
|
186 |
-
<a href="https://www.linkedin.com/in/
|
187 |
-
<a href="https://github.com/arad1367" target="_blank">GitHub</a> |
|
188 |
-
<a href="https://arad1367.pythonanywhere.com/" target="_blank">Live demo of my PhD defense</a> |
|
189 |
-
<a href="https://huggingface.co/microsoft/Phi-3.5-mini-instruct" target="_blank">microsoft/Phi-3.5-mini-instruct</a> |
|
190 |
-
<a href="https://huggingface.co/microsoft/Phi-3.5-vision-instruct" target="_blank">microsoft/Phi-3.5-vision-instruct</a>
|
191 |
<br>
|
192 |
-
Made with π by
|
193 |
</div>
|
194 |
"""
|
195 |
|
@@ -264,7 +260,7 @@ with gr.Blocks(css=CSS, theme="small_and_pretty") as demo:
|
|
264 |
with gr.Row():
|
265 |
input_img = gr.Image(label="Input Picture")
|
266 |
with gr.Row():
|
267 |
-
model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="
|
268 |
with gr.Row():
|
269 |
text_input = gr.Textbox(label="Question")
|
270 |
with gr.Row():
|
|
|
171 |
</center>
|
172 |
"""
|
173 |
|
174 |
+
TITLE = "<h1><center>Phi-3.5 Fine-Tuned Vision Bot using Burberry Dataset </center></h1>"
|
175 |
|
176 |
EXPLANATION = """
|
177 |
<div style="text-align: center; margin-top: 20px;">
|
178 |
+
<p>This app supports microsoft/Phi-3.5-vision-instruct model for multimodal model.</p>
|
179 |
<p>Phi-3.5-vision is a lightweight, state-of-the-art open multimodal model built upon datasets which include - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data both on text and vision. The model belongs to the Phi-3 model family, and the multimodal version comes with 128K context length (in tokens) it can support. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures.</p>
|
180 |
<p>Phi-3.5-mini is a lightweight, state-of-the-art open model built upon datasets used for Phi-3 - synthetic data and filtered publicly available websites - with a focus on very high-quality, reasoning dense data. The model belongs to the Phi-3 model family and supports 128K token context length. The model underwent a rigorous enhancement process, incorporating both supervised fine-tuning, proximal policy optimization, and direct preference optimization to ensure precise instruction adherence and robust safety measures.</p>
|
181 |
</div>
|
|
|
183 |
|
184 |
footer = """
|
185 |
<div style="text-align: center; margin-top: 20px;">
|
186 |
+
<a href="https://www.linkedin.com/in/justin-j-4a77456b/" target="_blank">LinkedIn</a>
|
|
|
|
|
|
|
|
|
187 |
<br>
|
188 |
+
Made with π by Justin J
|
189 |
</div>
|
190 |
"""
|
191 |
|
|
|
260 |
with gr.Row():
|
261 |
input_img = gr.Image(label="Input Picture")
|
262 |
with gr.Row():
|
263 |
+
model_selector = gr.Dropdown(choices=list(models.keys()), label="Model", value="justinj92/phi-35-vision-burberry")
|
264 |
with gr.Row():
|
265 |
text_input = gr.Textbox(label="Question")
|
266 |
with gr.Row():
|