Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -53,6 +53,9 @@ model_m = Qwen2VLForConditionalGeneration.from_pretrained(
|
|
53 |
TTS_VOICE_MAP = {
|
54 |
"@jennyneural": "en-US-JennyNeural",
|
55 |
"@guyneural": "en-US-GuyNeural",
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
async def text_to_speech(text: str, voice: str, output_file="output.mp3"):
|
@@ -284,7 +287,10 @@ demo = gr.ChatInterface(
|
|
284 |
["@JennyNeural Who was Nikola Tesla and what were his contributions?"],
|
285 |
[{"text": "@video-infer Describe the video", "files": ["examples/Missing.mp4"]}],
|
286 |
[{"text": "@video-infer Describe the Ad", "files": ["examples/coca.mp4"]}],
|
287 |
-
["@GuyNeural Explain how rainbows are formed."]
|
|
|
|
|
|
|
288 |
],
|
289 |
cache_examples=False,
|
290 |
description="# **Pocket Llama**",
|
|
|
53 |
TTS_VOICE_MAP = {
|
54 |
"@jennyneural": "en-US-JennyNeural",
|
55 |
"@guyneural": "en-US-GuyNeural",
|
56 |
+
"@palomaneural": "es-US-PalomaNeural",
|
57 |
+
"@alonsoneural": "es-US-AlonsoNeural",
|
58 |
+
"@MadhurNeural": "hi-IN-MadhurNeural"
|
59 |
}
|
60 |
|
61 |
async def text_to_speech(text: str, voice: str, output_file="output.mp3"):
|
|
|
287 |
["@JennyNeural Who was Nikola Tesla and what were his contributions?"],
|
288 |
[{"text": "@video-infer Describe the video", "files": ["examples/Missing.mp4"]}],
|
289 |
[{"text": "@video-infer Describe the Ad", "files": ["examples/coca.mp4"]}],
|
290 |
+
["@GuyNeural Explain how rainbows are formed."],
|
291 |
+
["@PalomaNeural What is the water cycle?"],
|
292 |
+
["@AlonsoNeural Who was Pablo Picasso and why is he famous?"],
|
293 |
+
["@MadhurNeural What are the key principles of Ayurveda?"]
|
294 |
],
|
295 |
cache_examples=False,
|
296 |
description="# **Pocket Llama**",
|