Spaces:
Running
Running
jhlfrfufyfn
commited on
Commit
•
6b48298
1
Parent(s):
1897f0d
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ def tts(text: str):
|
|
36 |
text = belarusify_russian_text(text)
|
37 |
print("Belarusified text: ", text)
|
38 |
# Sending a request to the fonemizer
|
39 |
-
headers = {'Content-Type': 'text/plain; charset=utf-8'} # Specify the charset as UTF-8
|
40 |
|
41 |
-
response = requests.post("http://fonemizer.nikuchin.fun/processText",
|
42 |
data=text.encode('utf-8'), # Encode the text as UTF-8
|
43 |
headers=headers)
|
44 |
|
|
|
36 |
text = belarusify_russian_text(text)
|
37 |
print("Belarusified text: ", text)
|
38 |
# Sending a request to the fonemizer
|
39 |
+
headers = {'Content-Type': 'text/plain; charset=utf-8'} # Specify the charset as UTF-8
|
40 |
|
41 |
+
response = requests.post("http://fonemizer.nikuchin.fun/processText",
|
42 |
data=text.encode('utf-8'), # Encode the text as UTF-8
|
43 |
headers=headers)
|
44 |
|