Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1207,7 +1207,7 @@ def answer_question(image, question):
|
|
1207 |
with gr.Blocks() as demo:
|
1208 |
gr.HTML("<h1 class='gradio-heading'><center>π moondream1</center></h1>")
|
1209 |
gr.HTML(
|
1210 |
-
"<center><p class='gradio-sub-heading'>moondream1 is an older version of the moondream model. Check out the <a href='https://huggingface.co/spaces/vikhyatk/moondream2'
|
1211 |
)
|
1212 |
with gr.Group():
|
1213 |
with gr.Row():
|
@@ -1228,24 +1228,3 @@ with gr.Blocks() as demo:
|
|
1228 |
|
1229 |
demo.queue().launch(debug=True)
|
1230 |
|
1231 |
-
# gr.Interface(
|
1232 |
-
# title="π moondream1",
|
1233 |
-
# description="""
|
1234 |
-
# moondream1 is a tiny (1.6B parameter) vision language model trained by <a href="https://x.com/vikhyatk">@vikhyatk</a> that performs on par with models twice its size. It is trained on the LLaVa training dataset, and initialized with SigLIP as the vision tower and Phi-1.5 as the text encoder. Check out the <a href="https://huggingface.co/vikhyatk/moondream1">HuggingFace model card</a> for more details.
|
1235 |
-
# """,
|
1236 |
-
# fn=answer_question,
|
1237 |
-
# inputs=[gr.Image(type="pil"), gr.Textbox(lines=2, label="Question")],
|
1238 |
-
# examples=[
|
1239 |
-
# [Image.open("assets/demo-1.jpg"), "Who is the author of this book?"],
|
1240 |
-
# [Image.open("assets/demo-2.jpg"), "What type of food is the girl eating?"],
|
1241 |
-
# [
|
1242 |
-
# Image.open("assets/demo-3.jpg"),
|
1243 |
-
# "What kind of public transportation is in the image?",
|
1244 |
-
# ],
|
1245 |
-
# [Image.open("assets/demo-4.jpg"), "What is the girl looking at?"],
|
1246 |
-
# [Image.open("assets/demo-5.jpg"), "What kind of dog is in the picture?"],
|
1247 |
-
# ],
|
1248 |
-
# outputs=gr.TextArea(label="Answer"),
|
1249 |
-
# allow_flagging="never",
|
1250 |
-
# cache_examples=False,
|
1251 |
-
# ).launch()
|
|
|
1207 |
with gr.Blocks() as demo:
|
1208 |
gr.HTML("<h1 class='gradio-heading'><center>π moondream1</center></h1>")
|
1209 |
gr.HTML(
|
1210 |
+
"<center><p class='gradio-sub-heading'>moondream1 is an older version of the moondream model. Check out the <a href='https://huggingface.co/spaces/vikhyatk/moondream2'>moondream2</a> space for an improved version.</p></center>"
|
1211 |
)
|
1212 |
with gr.Group():
|
1213 |
with gr.Row():
|
|
|
1228 |
|
1229 |
demo.queue().launch(debug=True)
|
1230 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|