Spaces:
Running
Running
Commit ·
52498b7
1
Parent(s): d029b07
3.70+ fix time
Browse files
app.py
CHANGED
|
@@ -880,7 +880,8 @@ class TranslationSystem:
|
|
| 880 |
def process_file(uploaded_file, model_choice, translation_method=None):
|
| 881 |
df = None
|
| 882 |
processed_rows_df = pd.DataFrame()
|
| 883 |
-
|
|
|
|
| 884 |
try:
|
| 885 |
# Initialize UI and control systems
|
| 886 |
ui = ProcessingUI()
|
|
@@ -980,6 +981,7 @@ def process_file(uploaded_file, model_choice, translation_method=None):
|
|
| 980 |
|
| 981 |
#Calculate processing speed (items per second)
|
| 982 |
current_time = time.time()
|
|
|
|
| 983 |
time_delta = current_time - last_update_time
|
| 984 |
if time_delta > 0:
|
| 985 |
processing_speed = 1 / time_delta # items per second
|
|
|
|
| 880 |
def process_file(uploaded_file, model_choice, translation_method=None):
|
| 881 |
df = None
|
| 882 |
processed_rows_df = pd.DataFrame()
|
| 883 |
+
last_update_time = time.time()
|
| 884 |
+
|
| 885 |
try:
|
| 886 |
# Initialize UI and control systems
|
| 887 |
ui = ProcessingUI()
|
|
|
|
| 981 |
|
| 982 |
#Calculate processing speed (items per second)
|
| 983 |
current_time = time.time()
|
| 984 |
+
|
| 985 |
time_delta = current_time - last_update_time
|
| 986 |
if time_delta > 0:
|
| 987 |
processing_speed = 1 / time_delta # items per second
|