K7Ploypailin commited on
Commit
5756752
·
1 Parent(s): f286486

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ MODEL_ID = 'facebook/convnext-tiny-224' # The base model ID used for training
20
  MODEL_NAME = "scb10x/typhoon2.5-qwen3-4b" # Typhoon 2.5 Model ID
21
  # Fetch Hugging Face Token from Space Secrets
22
  HF_TOKEN = os.getenv("HF_TOKEN")
23
- API_URL = f"https://api-inference.huggingface.co/models/{MODEL_NAME}"
24
 
25
 
26
  # Load character classes from the file created during training
 
20
  MODEL_NAME = "scb10x/typhoon2.5-qwen3-4b" # Typhoon 2.5 Model ID
21
  # Fetch Hugging Face Token from Space Secrets
22
  HF_TOKEN = os.getenv("HF_TOKEN")
23
+ API_URL = f"https://router.huggingface.co/models/{MODEL_NAME}" # <--- แก้ไข URL เป็น router.huggingface.co
24
 
25
 
26
  # Load character classes from the file created during training