Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,14 +33,13 @@ from util import (
|
|
| 33 |
# --- Configuration ---
|
| 34 |
# Set this to the URL of your backend Space (running app_backend.py)
|
| 35 |
# Example: "https://huggingface.co/spaces/username/backend-space"
|
| 36 |
-
hf_token = os.environ.get("HF_TOKEN")
|
| 37 |
BACKEND_URL = "LiuZichen/MagicQuillV2"
|
| 38 |
SAM_URL = "LiuZichen/MagicQuillHelper"
|
| 39 |
|
| 40 |
print(f"Connecting to backend at: {BACKEND_URL}")
|
| 41 |
|
| 42 |
try:
|
| 43 |
-
backend_client = Client(BACKEND_URL
|
| 44 |
except Exception as e:
|
| 45 |
print(f"Failed to connect to backend: {e}")
|
| 46 |
backend_client = None
|
|
|
|
| 33 |
# --- Configuration ---
|
| 34 |
# Set this to the URL of your backend Space (running app_backend.py)
|
| 35 |
# Example: "https://huggingface.co/spaces/username/backend-space"
|
|
|
|
| 36 |
BACKEND_URL = "LiuZichen/MagicQuillV2"
|
| 37 |
SAM_URL = "LiuZichen/MagicQuillHelper"
|
| 38 |
|
| 39 |
print(f"Connecting to backend at: {BACKEND_URL}")
|
| 40 |
|
| 41 |
try:
|
| 42 |
+
backend_client = Client(BACKEND_URL)
|
| 43 |
except Exception as e:
|
| 44 |
print(f"Failed to connect to backend: {e}")
|
| 45 |
backend_client = None
|