Sharyar commited on
Commit ·
41871dd
1
Parent(s): 390995d
Remove base_url parameter - let library handle endpoint routing automatically
Browse files
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 |
-
#
|
| 26 |
-
client = InferenceClient(model=MODEL_ID, token=token
|
| 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",
|