Spaces:
Runtime error
Runtime error
Nathan Franklin
commited on
Commit
·
97e9b74
1
Parent(s):
7e96d78
change urdu to spanish
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def generate_response(correction_intensity,
|
|
| 12 |
# Convert input audio to text
|
| 13 |
|
| 14 |
language_codes = {'English':'en',
|
| 15 |
-
'
|
| 16 |
'Japanese':'ja'}
|
| 17 |
|
| 18 |
user_query_transcribed_segments, info = model.transcribe(
|
|
@@ -22,6 +22,8 @@ def generate_response(correction_intensity,
|
|
| 22 |
user_query_transcribed = list(user_query_transcribed_segments)[0].text.strip()
|
| 23 |
|
| 24 |
# Ask llm for response to text
|
|
|
|
|
|
|
| 25 |
# Convert llm response to audio
|
| 26 |
# Return converted llm response
|
| 27 |
|
|
|
|
| 12 |
# Convert input audio to text
|
| 13 |
|
| 14 |
language_codes = {'English':'en',
|
| 15 |
+
'Spanish':'es',
|
| 16 |
'Japanese':'ja'}
|
| 17 |
|
| 18 |
user_query_transcribed_segments, info = model.transcribe(
|
|
|
|
| 22 |
user_query_transcribed = list(user_query_transcribed_segments)[0].text.strip()
|
| 23 |
|
| 24 |
# Ask llm for response to text
|
| 25 |
+
|
| 26 |
+
|
| 27 |
# Convert llm response to audio
|
| 28 |
# Return converted llm response
|
| 29 |
|