Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def load_model():
|
|
| 21 |
model.compile()
|
| 22 |
return model
|
| 23 |
|
| 24 |
-
@spaces.GPU(duration=
|
| 25 |
def process_image(image, task, question, caption_length, object_query, reasoning, temperature, top_p, max_tokens):
|
| 26 |
model = load_model()
|
| 27 |
|
|
@@ -125,7 +125,7 @@ def process_image(image, task, question, caption_length, object_query, reasoning
|
|
| 125 |
|
| 126 |
return boxes_text, None, img_with_boxes
|
| 127 |
|
| 128 |
-
with gr.Blocks(title="Moondream 3 Preview") as demo:
|
| 129 |
gr.Markdown(
|
| 130 |
"""
|
| 131 |
# 🌙 Moondream 3 Preview - Vision Language Model
|
|
|
|
| 21 |
model.compile()
|
| 22 |
return model
|
| 23 |
|
| 24 |
+
@spaces.GPU(duration=120)
|
| 25 |
def process_image(image, task, question, caption_length, object_query, reasoning, temperature, top_p, max_tokens):
|
| 26 |
model = load_model()
|
| 27 |
|
|
|
|
| 125 |
|
| 126 |
return boxes_text, None, img_with_boxes
|
| 127 |
|
| 128 |
+
with gr.Blocks(title="Moondream 3 Preview", theme=gr.themes.Soft()) as demo:
|
| 129 |
gr.Markdown(
|
| 130 |
"""
|
| 131 |
# 🌙 Moondream 3 Preview - Vision Language Model
|