Spaces:
Runtime error
Runtime error
Commit
·
93d657b
1
Parent(s):
0952397
speech function
Browse files
app.py
CHANGED
@@ -240,7 +240,7 @@ def get_azure_access_token():
|
|
240 |
except requests.exceptions.RequestException as e:
|
241 |
print(f"Error: {e}")
|
242 |
return None
|
243 |
-
print (response.text)
|
244 |
return response.text
|
245 |
|
246 |
|
@@ -271,7 +271,7 @@ def text_to_speech_2(text):
|
|
271 |
except requests.exceptions.RequestException as e:
|
272 |
print(f"Error: {e}")
|
273 |
return None
|
274 |
-
|
275 |
return response.content
|
276 |
|
277 |
Text2Sound_tool = Tool(
|
|
|
240 |
except requests.exceptions.RequestException as e:
|
241 |
print(f"Error: {e}")
|
242 |
return None
|
243 |
+
# print (response.text)
|
244 |
return response.text
|
245 |
|
246 |
|
|
|
271 |
except requests.exceptions.RequestException as e:
|
272 |
print(f"Error: {e}")
|
273 |
return None
|
274 |
+
print (type(response.content))
|
275 |
return response.content
|
276 |
|
277 |
Text2Sound_tool = Tool(
|