Validacion de secret values
Browse files
app.py
CHANGED
|
@@ -10,6 +10,9 @@ from huggingface_hub import snapshot_download
|
|
| 10 |
SPACE_USERNAME = os.getenv('SPACE_USERNAME')
|
| 11 |
SPACE_PASSWORD = os.getenv('SPACE_PASSWORD')
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
|
| 14 |
|
| 15 |
pipeline = AutoPipelineForText2Image.from_pretrained(
|
|
|
|
| 10 |
SPACE_USERNAME = os.getenv('SPACE_USERNAME')
|
| 11 |
SPACE_PASSWORD = os.getenv('SPACE_PASSWORD')
|
| 12 |
|
| 13 |
+
if not SPACE_USERNAME or not SPACE_PASSWORD:
|
| 14 |
+
raise ValueError("Las credenciales no están configuradas correctamente.")
|
| 15 |
+
|
| 16 |
snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
|
| 17 |
|
| 18 |
pipeline = AutoPipelineForText2Image.from_pretrained(
|