Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,16 +32,16 @@ from util import (
|
|
| 32 |
# --- Configuration ---
|
| 33 |
# Set this to the URL of your backend Space (running app_backend.py)
|
| 34 |
# Example: "https://huggingface.co/spaces/username/backend-space"
|
| 35 |
-
hf_token = hf_token = os.environ.get("HF_TOKEN")
|
| 36 |
BACKEND_URL = "LiuZichen/MagicQuillV2"
|
| 37 |
SAM_URL = "LiuZichen/MagicQuillHelper"
|
| 38 |
|
| 39 |
print(f"Connecting to backend at: {BACKEND_URL}")
|
| 40 |
|
| 41 |
-
backend_client = Client(BACKEND_URL
|
| 42 |
|
| 43 |
print(f"Connecting to SAM client at: {SAM_URL}")
|
| 44 |
-
sam_client = Client(SAM_URL
|
| 45 |
|
| 46 |
# --- Helper Functions ---
|
| 47 |
|
|
|
|
| 32 |
# --- Configuration ---
|
| 33 |
# Set this to the URL of your backend Space (running app_backend.py)
|
| 34 |
# Example: "https://huggingface.co/spaces/username/backend-space"
|
| 35 |
+
# hf_token = hf_token = os.environ.get("HF_TOKEN")
|
| 36 |
BACKEND_URL = "LiuZichen/MagicQuillV2"
|
| 37 |
SAM_URL = "LiuZichen/MagicQuillHelper"
|
| 38 |
|
| 39 |
print(f"Connecting to backend at: {BACKEND_URL}")
|
| 40 |
|
| 41 |
+
backend_client = Client(BACKEND_URL)
|
| 42 |
|
| 43 |
print(f"Connecting to SAM client at: {SAM_URL}")
|
| 44 |
+
sam_client = Client(SAM_URL)
|
| 45 |
|
| 46 |
# --- Helper Functions ---
|
| 47 |
|