Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,8 @@ HF_MODEL = os.getenv("HF_MODEL", "microsoft/DialoGPT-medium")
|
|
21 |
# Use a valid provider literal from the documentation
|
22 |
DEFAULT_PROVIDER: Literal["hf-inference"] = "hf-inference"
|
23 |
HF_PROVIDER = os.getenv("HF_PROVIDER", DEFAULT_PROVIDER)
|
|
|
|
|
24 |
|
25 |
# Simple storage for processed tag operations
|
26 |
tag_operations_store: List[Dict[str, Any]] = []
|
|
|
21 |
# Use a valid provider literal from the documentation
|
22 |
DEFAULT_PROVIDER: Literal["hf-inference"] = "hf-inference"
|
23 |
HF_PROVIDER = os.getenv("HF_PROVIDER", DEFAULT_PROVIDER)
|
24 |
+
if HF_TOKEN:
|
25 |
+
HF_TOKEN = HF_TOKEN.strip()
|
26 |
|
27 |
# Simple storage for processed tag operations
|
28 |
tag_operations_store: List[Dict[str, Any]] = []
|