Sharyar commited on
Commit
41871dd
·
1 Parent(s): 390995d

Remove base_url parameter - let library handle endpoint routing automatically

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def improve_description(user_input: str) -> str:
22
  return "Error: HUGGING_FACE_HUB_TOKEN environment variable is not set. Please configure your Hugging Face token."
23
 
24
  try:
25
- # Use the new router endpoint
26
- client = InferenceClient(model=MODEL_ID, token=token, base_url="https://api-inference.huggingface.co/models")
27
  messages = [
28
  {
29
  "role": "system",
 
22
  return "Error: HUGGING_FACE_HUB_TOKEN environment variable is not set. Please configure your Hugging Face token."
23
 
24
  try:
25
+ # Initialize client with model and token - library handles endpoint automatically
26
+ client = InferenceClient(model=MODEL_ID, token=token)
27
  messages = [
28
  {
29
  "role": "system",