ManiacWallnut commited on
Commit
7bcb4d2
Β·
verified Β·
1 Parent(s): 17560ba

Deploy ManiTaskGen VLM-free Gradio demo

Browse files
Files changed (2) hide show
  1. README.md +12 -0
  2. demo/app.py +9 -4
README.md CHANGED
@@ -41,6 +41,18 @@ Everything runs offline: **no VLM is called** β€” object renaming and feasibilit
41
  voting are skipped, and outcome candidates are exported with
42
  `voting_status: "not_run"`.
43
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  ### Run it locally
45
 
46
  ```bash
 
41
  voting are skipped, and outcome candidates are exported with
42
  `voting_status: "not_run"`.
43
 
44
+ ### πŸ—³ Optional GLM feasibility voting (text-only)
45
+
46
+ Generation never calls a VLM, but the UI includes an **optional** voting pass
47
+ for outcome candidates: paste an OpenAI-compatible API key (default
48
+ Z.AI `glm-5.3-flash`) and click *Run GLM voting*. It votes on a
49
+ **template-diverse sample** of candidates with N voters (different personas
50
+ and sampling temperatures, majority decides), entirely from the scene-graph
51
+ inventory (no rendering). Every vote is recorded with the **real model name**
52
+ in `tasks.jsonl` (`votes`, `voter_model`, `voting_status`), unvoted candidates
53
+ keep `voting_status: "not_run"`. The key is used for the request only and is
54
+ never stored or logged.
55
+
56
  ### Run it locally
57
 
58
  ```bash
demo/app.py CHANGED
@@ -187,7 +187,10 @@ def outcome_outputs(result, count):
187
  "come from object names before the first `_` (e.g. `book_red_0` "
188
  "β†’ book)._"
189
  )
190
- title = "#### 🎯 Outcome-based task candidates · No VLM voting"
 
 
 
191
  if result.voting_summary:
192
  vs = result.voting_summary
193
  title = (
@@ -327,7 +330,8 @@ def on_display_count_change(state, display_count):
327
  empty_cards = [gr.update(visible=False)] * MAX_CARDS
328
  return (
329
  *empty_cards, "",
330
- "#### 🎯 Outcome-based task candidates · No VLM voting",
 
331
  *empty_cards, "",
332
  )
333
  result = state["result"]
@@ -407,7 +411,7 @@ def build_ui():
407
  process_note = gr.Markdown("")
408
 
409
  outcome_title = gr.Markdown(
410
- "#### 🎯 Outcome-based task candidates · No VLM voting"
411
  )
412
  with gr.Group():
413
  outcome_cards = [
@@ -418,7 +422,8 @@ def build_ui():
418
  jsonl_out = gr.File(label="Download results (tasks.jsonl)")
419
 
420
  with gr.Accordion(
421
- "πŸ—³ GLM feasibility voting (optional, text-only)", open=False
 
422
  ):
423
  gr.Markdown(
424
  "Vote on a **template-diverse sample** of outcome "
 
187
  "come from object names before the first `_` (e.g. `book_red_0` "
188
  "β†’ book)._"
189
  )
190
+ title = (
191
+ "#### 🎯 Outcome-based task candidates · No VLM voting "
192
+ "β€” paste your key in πŸ—³ panel below and run GLM voting"
193
+ )
194
  if result.voting_summary:
195
  vs = result.voting_summary
196
  title = (
 
330
  empty_cards = [gr.update(visible=False)] * MAX_CARDS
331
  return (
332
  *empty_cards, "",
333
+ "#### 🎯 Outcome-based task candidates · No VLM voting "
334
+ "β€” paste your key in πŸ—³ panel below and run GLM voting",
335
  *empty_cards, "",
336
  )
337
  result = state["result"]
 
411
  process_note = gr.Markdown("")
412
 
413
  outcome_title = gr.Markdown(
414
+ "#### 🎯 Outcome-based task candidates Β· No VLM voting β€” paste your key in πŸ—³ panel below and run GLM voting"
415
  )
416
  with gr.Group():
417
  outcome_cards = [
 
422
  jsonl_out = gr.File(label="Download results (tasks.jsonl)")
423
 
424
  with gr.Accordion(
425
+ "πŸ—³ GLM feasibility voting (optional, text-only) β€” paste your key and click to filter candidates",
426
+ open=True,
427
  ):
428
  gr.Markdown(
429
  "Vote on a **template-diverse sample** of outcome "