Spaces:
Running
on
Zero
Running
on
Zero
Yurii Paniv
commited on
Commit
•
8a62cfd
1
Parent(s):
7c58737
Add print
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ from queue import Queue
|
|
18 |
from time import sleep
|
19 |
from os import getenv
|
20 |
from data_logger import log_data
|
21 |
-
from datetime import datetime
|
22 |
|
23 |
def check_thread(logging_queue: Queue):
|
24 |
logging_callback = log_data(
|
@@ -77,7 +77,7 @@ tokenizer = AutoTokenizer.from_pretrained(
|
|
77 |
def translate(input_text):
|
78 |
# generated_text = ""
|
79 |
input_text = input_text.strip()
|
80 |
-
print(f"{datetime.
|
81 |
|
82 |
if getenv("HF_API_TOKEN") is not None:
|
83 |
log_queue.put([input_text])
|
|
|
18 |
from time import sleep
|
19 |
from os import getenv
|
20 |
from data_logger import log_data
|
21 |
+
from datetime import datetime
|
22 |
|
23 |
def check_thread(logging_queue: Queue):
|
24 |
logging_callback = log_data(
|
|
|
77 |
def translate(input_text):
|
78 |
# generated_text = ""
|
79 |
input_text = input_text.strip()
|
80 |
+
print(f"{datetime.utcnow()} | Translating: {input_text}")
|
81 |
|
82 |
if getenv("HF_API_TOKEN") is not None:
|
83 |
log_queue.put([input_text])
|