Spaces:
Running
Running
Yarik
commited on
Commit
·
24d1f5a
1
Parent(s):
241878b
Add application file
Browse files- accentor.py +4 -1
- requirements.txt +0 -1
accentor.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
from ukrainian_word_stress import StressSymbol, Stressifier
|
2 |
-
|
|
|
|
|
|
|
3 |
|
4 |
def stress_replace_and_shift(stressed: str):
|
5 |
stressed = stressed.replace(
|
|
|
1 |
from ukrainian_word_stress import StressSymbol, Stressifier
|
2 |
+
import sys
|
3 |
+
import os
|
4 |
+
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
5 |
+
from accentor_lib.ukrainian_accentor_transformer import Accentor
|
6 |
|
7 |
def stress_replace_and_shift(stressed: str):
|
8 |
stressed = stressed.replace(
|
requirements.txt
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
numpy>=1.19.5
|
2 |
torch>=1.9
|
3 |
ukrainian-word-stress
|
4 |
-
git+https://github.com/Theodotus1243/ukrainian-accentor-transformer.git
|
5 |
fastapi
|
6 |
pydantic
|
7 |
uvicorn
|
|
|
1 |
numpy>=1.19.5
|
2 |
torch>=1.9
|
3 |
ukrainian-word-stress
|
|
|
4 |
fastapi
|
5 |
pydantic
|
6 |
uvicorn
|