Spaces:
Running
on
Zero
Running
on
Zero
fix concat by adding []
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def push_to_hf_dataset():
|
|
88 |
print(f"[INFO] Loaded existing dataset with {len(existing_dataset)} entries")
|
89 |
|
90 |
# Concatenate existing data with new data
|
91 |
-
combined_dataset = concatenate_datasets(existing_dataset, new_data)
|
92 |
print(f"[INFO] Combined dataset now has {len(combined_dataset)} entries")
|
93 |
except Exception as e:
|
94 |
print(f"[INFO] No existing dataset found or error loading: {str(e)}")
|
@@ -110,7 +110,7 @@ def push_to_hf_dataset():
|
|
110 |
|
111 |
except Exception as e:
|
112 |
print(f"[ERROR] Failed to push dataset to Hugging Face: {str(e)}")
|
113 |
-
|
114 |
@spaces.GPU
|
115 |
def translate_nano_large(text, model_name):
|
116 |
""" Translation function for Nano and Large models """
|
|
|
88 |
print(f"[INFO] Loaded existing dataset with {len(existing_dataset)} entries")
|
89 |
|
90 |
# Concatenate existing data with new data
|
91 |
+
combined_dataset = concatenate_datasets([existing_dataset, new_data])
|
92 |
print(f"[INFO] Combined dataset now has {len(combined_dataset)} entries")
|
93 |
except Exception as e:
|
94 |
print(f"[INFO] No existing dataset found or error loading: {str(e)}")
|
|
|
110 |
|
111 |
except Exception as e:
|
112 |
print(f"[ERROR] Failed to push dataset to Hugging Face: {str(e)}")
|
113 |
+
|
114 |
@spaces.GPU
|
115 |
def translate_nano_large(text, model_name):
|
116 |
""" Translation function for Nano and Large models """
|