TomBombadyl commited on
Commit
ab1be8f
·
verified ·
1 Parent(s): 39c93e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -24,8 +24,6 @@ if HF_TOKEN:
24
 
25
  SYSTEM_PROMPT_DEFAULT = """You are a helpful AI assistant for Isaac Sim 5.0, Isaac Lab 2.1, and Omniverse Kit 107.3 robotics development. You specialize in NVIDIA robotics development, computer vision, sensor integration, and simulation workflows.
26
 
27
- You are a helpful AI assistant for Isaac Sim 5.0, Isaac Lab 2.1, and Omniverse Kit 107.3 robotics development. You specialize in NVIDIA robotics development, computer vision, sensor integration, and simulation workflows.
28
-
29
  CRITICAL API GUIDANCE - Isaac Sim 5.0 Extension System:
30
 
31
  📦 CORE EXTENSIONS (isaacsim.*):
@@ -116,7 +114,7 @@ time.sleep(1)
116
  simulation_app.shutdown()
117
  ```
118
 
119
- �� AVOID THESE PATTERNS:
120
  ❌ Class-based architecture (BaseSample inheritance)
121
  ❌ Async/await patterns (setup_post_load, setup_post_reset)
122
  ❌ Physics callbacks (add_physics_callback)
@@ -142,8 +140,8 @@ simulation_app.shutdown()
142
 
143
  Always provide complete, executable Isaac Sim 5.0 code that runs as a standalone script, NOT as an extension. Focus on simplicity and direct execution patterns."""
144
 
145
- DEFAULT_MAX_NEW_TOKENS = 1024
146
- DEFAULT_MAX_INPUT_TOKENS = 2048
147
 
148
  def to_single_turn(messages):
149
  lines = []
@@ -272,9 +270,9 @@ with gr.Blocks(title="Qwen2.5‑Coder‑7B‑Instruct‑Omni1.1 (Isaac Sim Robot
272
  # Advanced settings (collapsed)
273
  with gr.Accordion("Advanced settings", open=False):
274
  with gr.Row(elem_id="controls"):
275
- temperature = gr.Slider(0.0, 1.5, value=0.2, step=0.05, label="temperature")
276
- top_p = gr.Slider(0.1, 1.0, value=0.7, step=0.01, label="top_p")
277
- max_new_tokens = gr.Slider(16, 1024, value=DEFAULT_MAX_NEW_TOKENS, step=128, label="max_new_tokens")
278
  max_input_tokens = gr.Slider(256, 8192, value=DEFAULT_MAX_INPUT_TOKENS, step=256, label="max_input_tokens")
279
  system_prompt = gr.Textbox(
280
  value=SYSTEM_PROMPT_DEFAULT,
 
24
 
25
  SYSTEM_PROMPT_DEFAULT = """You are a helpful AI assistant for Isaac Sim 5.0, Isaac Lab 2.1, and Omniverse Kit 107.3 robotics development. You specialize in NVIDIA robotics development, computer vision, sensor integration, and simulation workflows.
26
 
 
 
27
  CRITICAL API GUIDANCE - Isaac Sim 5.0 Extension System:
28
 
29
  📦 CORE EXTENSIONS (isaacsim.*):
 
114
  simulation_app.shutdown()
115
  ```
116
 
117
+ AVOID THESE PATTERNS:
118
  ❌ Class-based architecture (BaseSample inheritance)
119
  ❌ Async/await patterns (setup_post_load, setup_post_reset)
120
  ❌ Physics callbacks (add_physics_callback)
 
140
 
141
  Always provide complete, executable Isaac Sim 5.0 code that runs as a standalone script, NOT as an extension. Focus on simplicity and direct execution patterns."""
142
 
143
+ DEFAULT_MAX_NEW_TOKENS = 2048
144
+ DEFAULT_MAX_INPUT_TOKENS = 4096
145
 
146
  def to_single_turn(messages):
147
  lines = []
 
270
  # Advanced settings (collapsed)
271
  with gr.Accordion("Advanced settings", open=False):
272
  with gr.Row(elem_id="controls"):
273
+ temperature = gr.Slider(0.0, 1.5, value=0.5, step=0.05, label="temperature")
274
+ top_p = gr.Slider(0.1, 1.0, value=0.85, step=0.01, label="top_p")
275
+ max_new_tokens = gr.Slider(16, 2048, value=DEFAULT_MAX_NEW_TOKENS, step=128, label="max_new_tokens")
276
  max_input_tokens = gr.Slider(256, 8192, value=DEFAULT_MAX_INPUT_TOKENS, step=256, label="max_input_tokens")
277
  system_prompt = gr.Textbox(
278
  value=SYSTEM_PROMPT_DEFAULT,