abhinema commited on
Commit
2aa6c9f
·
1 Parent(s): a326298

Update with token.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- st.success("✅ 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
- st.error("❌ HF_TOKEN not found in environment variables!")
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",