Commit
·
8a11fd4
1
Parent(s):
400b9bc
enhancement #12: adding avatars
Browse files
.gitattributes
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Macro for all binary files that should use Git LFS.
|
| 2 |
+
[attr]lfs -text filter=lfs diff=lfs merge=lfs
|
| 3 |
+
|
| 4 |
+
# Image
|
| 5 |
+
*.jpg lfs
|
| 6 |
+
*.jpeg lfs
|
| 7 |
+
*.png lfs
|
| 8 |
+
*.apng lfs
|
| 9 |
+
*.atsc lfs
|
| 10 |
+
*.gif lfs
|
| 11 |
+
*.bmp lfs
|
| 12 |
+
*.exr lfs
|
| 13 |
+
*.tga lfs
|
| 14 |
+
*.tiff lfs
|
| 15 |
+
*.tif lfs
|
| 16 |
+
*.iff lfs
|
| 17 |
+
*.pict lfs
|
| 18 |
+
*.dds lfs
|
| 19 |
+
*.xcf lfs
|
| 20 |
+
*.leo lfs
|
| 21 |
+
*.kra lfs
|
| 22 |
+
*.kpp lfs
|
| 23 |
+
*.clip lfs
|
| 24 |
+
*.webm lfs
|
| 25 |
+
*.webp lfs
|
| 26 |
+
*.svg lfs
|
| 27 |
+
*.svgz lfs
|
| 28 |
+
*.psd lfs
|
| 29 |
+
*.afphoto lfs
|
| 30 |
+
*.afdesign lfs
|
| 31 |
+
# Models
|
| 32 |
+
*.pth lfs
|
| 33 |
+
# Binaries
|
| 34 |
+
*.bin lfs
|
| 35 |
+
*.pkl lfs
|
| 36 |
+
*.pckl lfs
|
| 37 |
+
# 3D
|
| 38 |
+
*.ply lfs
|
| 39 |
+
*.vis lfs
|
| 40 |
+
*.db lfs
|
| 41 |
+
*.ply lfs
|
src/reachy_mini_conversation_demo/images/reachymini_avatar.png
ADDED
|
|
Git LFS Details
|
src/reachy_mini_conversation_demo/images/user_avatar.png
ADDED
|
|
Git LFS Details
|
src/reachy_mini_conversation_demo/main.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
from threading import Thread
|
| 2 |
|
| 3 |
import gradio as gr
|
|
@@ -53,8 +54,17 @@ def main():
|
|
| 53 |
vision_manager=vision_manager,
|
| 54 |
head_wobbler=head_wobbler,
|
| 55 |
)
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
handler = OpenaiRealtimeHandler(deps)
|
| 60 |
stream = Stream(
|
|
|
|
| 1 |
+
import os
|
| 2 |
from threading import Thread
|
| 3 |
|
| 4 |
import gradio as gr
|
|
|
|
| 54 |
vision_manager=vision_manager,
|
| 55 |
head_wobbler=head_wobbler,
|
| 56 |
)
|
| 57 |
+
current_file_path = os.path.dirname(os.path.abspath(__file__))
|
| 58 |
+
logger.info(f"Current file absolute path: {current_file_path}")
|
| 59 |
+
chatbot = gr.Chatbot(
|
| 60 |
+
type="messages",
|
| 61 |
+
resizable=True,
|
| 62 |
+
avatar_images=(
|
| 63 |
+
os.path.join(current_file_path, "images", "user_avatar.png"),
|
| 64 |
+
os.path.join(current_file_path, "images", "reachymini_avatar.png"),
|
| 65 |
+
),
|
| 66 |
+
)
|
| 67 |
+
logger.info(f"Chatbot avatar images: {chatbot.avatar_images}")
|
| 68 |
|
| 69 |
handler = OpenaiRealtimeHandler(deps)
|
| 70 |
stream = Stream(
|