akhaliq HF Staff commited on
Commit
7f9da48
·
verified ·
1 Parent(s): 2412640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def load_model():
21
  model.compile()
22
  return model
23
 
24
- @spaces.GPU(duration=60)
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