Update app.py
Browse files
app.py
CHANGED
@@ -32,11 +32,10 @@ if not HF_HUB_TOKEN:
|
|
32 |
raise ValueError("Missing Hugging Face API token. Please set HUGGINGFACEHUB_API_TOKEN.")
|
33 |
|
34 |
|
35 |
-
print(f"HF_HUB_TOKEN: {HF_HUB_TOKEN[:5]}")
|
36 |
-
|
37 |
# Login and initialize the InferenceClient
|
38 |
login(token=HF_HUB_TOKEN)
|
39 |
client = InferenceClient(token=HF_HUB_TOKEN)
|
|
|
40 |
|
41 |
|
42 |
# Create FastAPI app instance
|
|
|
32 |
raise ValueError("Missing Hugging Face API token. Please set HUGGINGFACEHUB_API_TOKEN.")
|
33 |
|
34 |
|
|
|
|
|
35 |
# Login and initialize the InferenceClient
|
36 |
login(token=HF_HUB_TOKEN)
|
37 |
client = InferenceClient(token=HF_HUB_TOKEN)
|
38 |
+
print(f"HF_HUB_TOKEN: {HF_HUB_TOKEN[:37]}")
|
39 |
|
40 |
|
41 |
# Create FastAPI app instance
|