asmaa105 commited on
Commit
fb0d820
·
verified ·
1 Parent(s): 8553070

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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]] = []