Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ pipe = pipeline(TASK, model=MODEL_NAME)
|
|
| 8 |
|
| 9 |
MAX_CHARS = 2000
|
| 10 |
|
| 11 |
-
def run(text: str)
|
| 12 |
if text is None or not text.strip():
|
| 13 |
return "Ошибка: пустой ввод.", None, None
|
| 14 |
t0 = time.time()
|
|
|
|
| 8 |
|
| 9 |
MAX_CHARS = 2000
|
| 10 |
|
| 11 |
+
def run(text: str):
|
| 12 |
if text is None or not text.strip():
|
| 13 |
return "Ошибка: пустой ввод.", None, None
|
| 14 |
t0 = time.time()
|