Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,10 +4,9 @@ from script import *
|
|
| 4 |
|
| 5 |
|
| 6 |
def interface(Language, Audio):
|
| 7 |
-
sr, array = Audio
|
| 8 |
|
| 9 |
if Language == 'Hausa':
|
| 10 |
-
command = query(
|
| 11 |
state = activate_hausa(command)
|
| 12 |
return state
|
| 13 |
|
|
@@ -17,7 +16,7 @@ def interface(Language, Audio):
|
|
| 17 |
# return state
|
| 18 |
|
| 19 |
elif Language == 'Yoruba':
|
| 20 |
-
command = query(
|
| 21 |
state = activate_yoruba(command)
|
| 22 |
return state
|
| 23 |
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def interface(Language, Audio):
|
|
|
|
| 7 |
|
| 8 |
if Language == 'Hausa':
|
| 9 |
+
command = query(Audio, 'ha')
|
| 10 |
state = activate_hausa(command)
|
| 11 |
return state
|
| 12 |
|
|
|
|
| 16 |
# return state
|
| 17 |
|
| 18 |
elif Language == 'Yoruba':
|
| 19 |
+
command = query(Audio, 'yo')
|
| 20 |
state = activate_yoruba(command)
|
| 21 |
return state
|
| 22 |
|