Sangmin commited on
Commit
97789f2
1 Parent(s): b77f53d

Update description

Browse files
Files changed (1) hide show
  1. app.py +1 -22
app.py CHANGED
@@ -1205,7 +1205,7 @@ def answer_question(image, question):
1205
  with gr.Blocks() as demo:
1206
  gr.HTML("<h1 class='gradio-heading'><center>🌔 moondream</center></h1>")
1207
  gr.HTML(
1208
- "<center><p class='gradio-sub-heading'>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.</p></center>"
1209
  )
1210
  with gr.Group():
1211
  with gr.Row():
@@ -1226,24 +1226,3 @@ with gr.Blocks() as demo:
1226
 
1227
  demo.queue().launch(debug=True)
1228
 
1229
- # gr.Interface(
1230
- # title="🌔 moondream1",
1231
- # description="""
1232
- # 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.
1233
- # """,
1234
- # fn=answer_question,
1235
- # inputs=[gr.Image(type="pil"), gr.Textbox(lines=2, label="Question")],
1236
- # examples=[
1237
- # [Image.open("assets/demo-1.jpg"), "Who is the author of this book?"],
1238
- # [Image.open("assets/demo-2.jpg"), "What type of food is the girl eating?"],
1239
- # [
1240
- # Image.open("assets/demo-3.jpg"),
1241
- # "What kind of public transportation is in the image?",
1242
- # ],
1243
- # [Image.open("assets/demo-4.jpg"), "What is the girl looking at?"],
1244
- # [Image.open("assets/demo-5.jpg"), "What kind of dog is in the picture?"],
1245
- # ],
1246
- # outputs=gr.TextArea(label="Answer"),
1247
- # allow_flagging="never",
1248
- # cache_examples=False,
1249
- # ).launch()
 
1205
  with gr.Blocks() as demo:
1206
  gr.HTML("<h1 class='gradio-heading'><center>🌔 moondream</center></h1>")
1207
  gr.HTML(
1208
+ "<center><p class='gradio-sub-heading'>⭐️Brought to you by <a href='https://note.com/sangmin/n/n4344d02afde7'>Chiomirai School</a>⭐️</p></center>"
1209
  )
1210
  with gr.Group():
1211
  with gr.Row():
 
1226
 
1227
  demo.queue().launch(debug=True)
1228