Alina Lozovskaya
commited on
Commit
·
ee25d7e
1
Parent(s):
943dfa4
Apply Ruff to main.py
Browse files
src/reachy_mini_conversation_demo/main.py
CHANGED
|
@@ -37,10 +37,12 @@ def main():
|
|
| 37 |
logger.warning("Head tracking is not activated due to --no-camera.")
|
| 38 |
|
| 39 |
robot = ReachyMini()
|
| 40 |
-
|
| 41 |
# Check if running in simulation mode without --gradio
|
| 42 |
if robot.client.get_status()["simulation_enabled"] and not args.gradio:
|
| 43 |
-
logger.error(
|
|
|
|
|
|
|
| 44 |
robot.client.disconnect()
|
| 45 |
sys.exit(1)
|
| 46 |
|
|
|
|
| 37 |
logger.warning("Head tracking is not activated due to --no-camera.")
|
| 38 |
|
| 39 |
robot = ReachyMini()
|
| 40 |
+
|
| 41 |
# Check if running in simulation mode without --gradio
|
| 42 |
if robot.client.get_status()["simulation_enabled"] and not args.gradio:
|
| 43 |
+
logger.error(
|
| 44 |
+
"Simulation mode requires Gradio interface. Please use --gradio flag when running in simulation mode."
|
| 45 |
+
)
|
| 46 |
robot.client.disconnect()
|
| 47 |
sys.exit(1)
|
| 48 |
|