Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -201,13 +201,13 @@ def convert_text_to_speech(input_text: str, source_language: str, target_languag
|
|
201 |
try:
|
202 |
# Make a prediction request to the client
|
203 |
result = client.predict(
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
input_text
|
209 |
-
source_language
|
210 |
-
target_language
|
211 |
api_name="/run"
|
212 |
)
|
213 |
|
|
|
201 |
try:
|
202 |
# Make a prediction request to the client
|
203 |
result = client.predict(
|
204 |
+
"T2ST",
|
205 |
+
"text", # Since we are doing text-to-speech
|
206 |
+
None,
|
207 |
+
None,
|
208 |
+
input_text,
|
209 |
+
source_language,
|
210 |
+
target_language,
|
211 |
api_name="/run"
|
212 |
)
|
213 |
|