Update app.py
Browse files
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
|
| 114 |
-
continuously recalibrates the emotional
|
| 115 |
This demo focuses on the real-time fast loop for clarity.
|
| 116 |
"""
|
| 117 |
)
|
| 118 |
|
| 119 |
gr.Markdown("---")
|
| 120 |
|
| 121 |
-
#
|
| 122 |
-
# SECTION 3 β Embedded
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|