danielritchie commited on
Commit
f9c7fab
Β·
verified Β·
1 Parent(s): 89ebd24

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -18
app.py CHANGED
@@ -24,7 +24,7 @@ def run_pipeline(preset_name, passion, drama):
24
  natural = preset["raw"]
25
  target = preset["target"]
26
 
27
- # Edge Phase 1 β€” Natural Extraction
28
  extracted = natural
29
 
30
  # Edge Phase 2 β€” Passion Amplification
@@ -59,9 +59,9 @@ with gr.Blocks(title="VIBE-Eyes β€” Edge Emotional Intelligence") as demo:
59
  gr.Markdown("# VIBE-Eyes πŸ‘οΈ")
60
  gr.Markdown("## Edge Emotional Intelligence for Robotics")
61
 
62
- # --------------------------------------------------------
63
  # SECTION 1 β€” Robot Speech
64
- # --------------------------------------------------------
65
 
66
  gr.Markdown("### πŸ—£ Robot Speech")
67
 
@@ -78,9 +78,9 @@ with gr.Blocks(title="VIBE-Eyes β€” Edge Emotional Intelligence") as demo:
78
 
79
  gr.Markdown("---")
80
 
81
- # --------------------------------------------------------
82
  # SECTION 2 β€” Edge Processing
83
- # --------------------------------------------------------
84
 
85
  gr.Markdown("### ⚑ Edge Processing β€” NVIDIA Jetson Orin Nano")
86
 
@@ -110,26 +110,26 @@ with gr.Blocks(title="VIBE-Eyes β€” Edge Emotional Intelligence") as demo:
110
  gr.Markdown(
111
  """
112
  *Note:*
113
- In the full hardware system, a slow baseline loop (Nemotron via Ollama)
114
- continuously recalibrates the emotional baseline in parallel.
115
  This demo focuses on the real-time fast loop for clarity.
116
  """
117
  )
118
 
119
  gr.Markdown("---")
120
 
121
- # --------------------------------------------------------
122
- # SECTION 3 β€” Embedded Display Module
123
- # --------------------------------------------------------
124
 
125
  gr.Markdown("### πŸ’‘ Embedded Display Module")
126
 
127
  rgb_output = gr.JSON(label="Color Model Output (RGB + Expressive Parameters)")
128
  color_display = gr.HTML(label="Rendered Expression")
129
 
130
- # --------------------------------------------------------
131
  # Bind
132
- # --------------------------------------------------------
133
 
134
  preset_selector.change(
135
  fn=run_pipeline,
@@ -173,10 +173,19 @@ with gr.Blocks(title="VIBE-Eyes β€” Edge Emotional Intelligence") as demo:
173
  ]
174
  )
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
 
177
- demo.launch(
178
- server_name="0.0.0.0",
179
- server_port=7860,
180
- show_error=True,
181
- debug=False
182
- )
 
24
  natural = preset["raw"]
25
  target = preset["target"]
26
 
27
+ # Edge Phase 1 β€” Natural Extraction (precomputed)
28
  extracted = natural
29
 
30
  # Edge Phase 2 β€” Passion Amplification
 
59
  gr.Markdown("# VIBE-Eyes πŸ‘οΈ")
60
  gr.Markdown("## Edge Emotional Intelligence for Robotics")
61
 
62
+ # ---------------------------
63
  # SECTION 1 β€” Robot Speech
64
+ # ---------------------------
65
 
66
  gr.Markdown("### πŸ—£ Robot Speech")
67
 
 
78
 
79
  gr.Markdown("---")
80
 
81
+ # ---------------------------
82
  # SECTION 2 β€” Edge Processing
83
+ # ---------------------------
84
 
85
  gr.Markdown("### ⚑ Edge Processing β€” NVIDIA Jetson Orin Nano")
86
 
 
110
  gr.Markdown(
111
  """
112
  *Note:*
113
+ In the full hardware system, a parallel slow-loop baseline
114
+ (Nemotron via Ollama) continuously recalibrates the emotional state.
115
  This demo focuses on the real-time fast loop for clarity.
116
  """
117
  )
118
 
119
  gr.Markdown("---")
120
 
121
+ # ---------------------------
122
+ # SECTION 3 β€” Embedded Module
123
+ # ---------------------------
124
 
125
  gr.Markdown("### πŸ’‘ Embedded Display Module")
126
 
127
  rgb_output = gr.JSON(label="Color Model Output (RGB + Expressive Parameters)")
128
  color_display = gr.HTML(label="Rendered Expression")
129
 
130
+ # ---------------------------
131
  # Bind
132
+ # ---------------------------
133
 
134
  preset_selector.change(
135
  fn=run_pipeline,
 
173
  ]
174
  )
175
 
176
+ demo.load(
177
+ fn=run_pipeline,
178
+ inputs=[preset_selector, passion, drama],
179
+ outputs=[
180
+ transcript_output,
181
+ natural_output,
182
+ amplified_output,
183
+ cinematic_output,
184
+ rgb_output,
185
+ color_display,
186
+ scatter_output
187
+ ]
188
+ )
189
+
190
 
191
+ demo.launch(server_name="0.0.0.0", server_port=7860)