Spaces:
Sleeping
Sleeping
GeorgeSherif
commited on
Commit
·
72fc143
1
Parent(s):
e727153
updates
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ dataset_name = "GeorgeIbrahim/EGYCOCO" # Replace with your dataset name
|
|
| 14 |
# Load or create the dataset
|
| 15 |
try:
|
| 16 |
dataset = load_dataset(dataset_name)
|
|
|
|
| 17 |
except Exception as e:
|
| 18 |
# Create an empty dataset if it doesn't exist
|
| 19 |
features = Features({
|
|
@@ -55,6 +56,7 @@ def save_annotation(caption):
|
|
| 55 |
|
| 56 |
# Save updated dataset to Hugging Face
|
| 57 |
dataset.push_to_hub(dataset_name)
|
|
|
|
| 58 |
|
| 59 |
# Fetch the next image
|
| 60 |
current_image = get_next_image()
|
|
|
|
| 14 |
# Load or create the dataset
|
| 15 |
try:
|
| 16 |
dataset = load_dataset(dataset_name)
|
| 17 |
+
print(dataset)
|
| 18 |
except Exception as e:
|
| 19 |
# Create an empty dataset if it doesn't exist
|
| 20 |
features = Features({
|
|
|
|
| 56 |
|
| 57 |
# Save updated dataset to Hugging Face
|
| 58 |
dataset.push_to_hub(dataset_name)
|
| 59 |
+
print("Already pushed")
|
| 60 |
|
| 61 |
# Fetch the next image
|
| 62 |
current_image = get_next_image()
|