Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ sys.path.insert(0, "/tmp/Netlistify")
|
|
| 21 |
# Hugging Face Token aus Environment Variable oder Space Secrets
|
| 22 |
HF_TOKEN = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
|
| 23 |
|
| 24 |
-
@spaces.GPU(duration=
|
| 25 |
def train_netlistify(
|
| 26 |
dataset_repo_id: str,
|
| 27 |
epochs: int = 10,
|
|
|
|
| 21 |
# Hugging Face Token aus Environment Variable oder Space Secrets
|
| 22 |
HF_TOKEN = os.getenv("HF_TOKEN") or os.getenv("HUGGING_FACE_HUB_TOKEN")
|
| 23 |
|
| 24 |
+
@spaces.GPU(duration=3600) # 1 Stunde für Training (ZeroGPU Limit)
|
| 25 |
def train_netlistify(
|
| 26 |
dataset_repo_id: str,
|
| 27 |
epochs: int = 10,
|