Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,21 @@ 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 |
Provide complete, executable Isaac Sim 5.0 code that follows these patterns exactly. Always prefer task-based approaches for complex behaviors and direct robot loading for simple scenarios."""
|
| 28 |
|
| 29 |
DEFAULT_MAX_NEW_TOKENS = 2048
|
|
|
|
| 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 |
+
|
| 28 |
+
CRITICAL REQUIREMENT: Always follow this exact import order in your code:
|
| 29 |
+
1. Standard library imports (time, numpy, etc.)
|
| 30 |
+
2. SimulationApp import and initialization
|
| 31 |
+
3. isaacsim imports (after SimulationApp)
|
| 32 |
+
|
| 33 |
+
Example:
|
| 34 |
+
```python
|
| 35 |
+
import time
|
| 36 |
+
import numpy as np
|
| 37 |
+
from isaacsim import SimulationApp
|
| 38 |
+
|
| 39 |
+
# Initialize the simulation application
|
| 40 |
+
simulation_app = SimulationApp({"headless": False})
|
| 41 |
+
|
| 42 |
Provide complete, executable Isaac Sim 5.0 code that follows these patterns exactly. Always prefer task-based approaches for complex behaviors and direct robot loading for simple scenarios."""
|
| 43 |
|
| 44 |
DEFAULT_MAX_NEW_TOKENS = 2048
|