multimodalart HF Staff commited on
Commit
7be29ab
·
verified ·
1 Parent(s): 7c218c0

Gradio 6 theme/css on launch(); tighten ZeroGPU duration to 45s

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -173,7 +173,7 @@ def _parse_lines(text: str, limit: int) -> list:
173
  # ----------------------------------------------------------------------------
174
  # Inference
175
  # ----------------------------------------------------------------------------
176
- @spaces.GPU(duration=90)
177
  def analyze(
178
  ct_file: str,
179
  volume_prompts: str = DEFAULT_VOLUME_PROMPTS,
@@ -279,7 +279,7 @@ CSS = """
279
  .dark .gradio-container { color: var(--body-text-color); }
280
  """
281
 
282
- with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Jolia — zero-shot CT") as demo:
283
  with gr.Column(elem_id="col-container"):
284
  gr.Markdown(
285
  "# Jolia — zero-shot CT analysis\n"
@@ -427,4 +427,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Jolia — zero-shot CT"
427
  )
428
 
429
  if __name__ == "__main__":
430
- demo.launch(mcp_server=True)
 
173
  # ----------------------------------------------------------------------------
174
  # Inference
175
  # ----------------------------------------------------------------------------
176
+ @spaces.GPU(duration=45)
177
  def analyze(
178
  ct_file: str,
179
  volume_prompts: str = DEFAULT_VOLUME_PROMPTS,
 
279
  .dark .gradio-container { color: var(--body-text-color); }
280
  """
281
 
282
+ with gr.Blocks(title="Jolia — zero-shot CT") as demo:
283
  with gr.Column(elem_id="col-container"):
284
  gr.Markdown(
285
  "# Jolia — zero-shot CT analysis\n"
 
427
  )
428
 
429
  if __name__ == "__main__":
430
+ demo.launch(theme=gr.themes.Citrus(), css=CSS, mcp_server=True)