theostos commited on
Commit
d6aba3e
·
1 Parent(s): bf6b437

fix warmup

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ with gr.Blocks(title="MathComp Retrieval (Qwen3 Embedding 4B)", theme=gr.themes.
177
  status_md = gr.Markdown("⏳ Loading model… (first time may take a bit)")
178
  def warmup():
179
  try:
180
- _ = get_embedder("4B", True) # safe default
181
  return "✅ Model ready."
182
  except Exception as e:
183
  return f"⚠️ Warmup failed: {e}"
 
177
  status_md = gr.Markdown("⏳ Loading model… (first time may take a bit)")
178
  def warmup():
179
  try:
180
+ _ = get_embedder() # safe default
181
  return "✅ Model ready."
182
  except Exception as e:
183
  return f"⚠️ Warmup failed: {e}"