Update with token.
Browse files
app.py
CHANGED
|
@@ -9,11 +9,11 @@ hf_token = os.getenv("HF_TOKEN")
|
|
| 9 |
|
| 10 |
# Add this to your app's UI for debugging
|
| 11 |
if hf_token:
|
| 12 |
-
|
| 13 |
# Optional: Display the first few characters to confirm it's not empty
|
| 14 |
# st.write(f"Token starts with: {hf_token[:4]}...")
|
| 15 |
else:
|
| 16 |
-
|
| 17 |
|
| 18 |
client = InferenceClient(
|
| 19 |
provider="groq",
|
|
|
|
| 9 |
|
| 10 |
# Add this to your app's UI for debugging
|
| 11 |
if hf_token:
|
| 12 |
+
print("✅ HF_TOKEN was found!")
|
| 13 |
# Optional: Display the first few characters to confirm it's not empty
|
| 14 |
# st.write(f"Token starts with: {hf_token[:4]}...")
|
| 15 |
else:
|
| 16 |
+
print("❌ HF_TOKEN not found in environment variables!")
|
| 17 |
|
| 18 |
client = InferenceClient(
|
| 19 |
provider="groq",
|