UtkarshOTS commited on
Commit
50fc658
·
verified ·
1 Parent(s): 4275a42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -2,11 +2,8 @@ import os
2
  import gradio as gr
3
  from huggingface_hub import InferenceClient
4
 
5
- # 🔐 Set your Hugging Face token here or use an environment variable
6
- HUGGINGFACE_TOKEN = os.getenv("HUGGINGFACE_TOKEN")
7
 
8
-
9
- # ✅ Initialize client
10
  client = InferenceClient(
11
  model="HuggingFaceH4/zephyr-7b-beta",
12
  token=HUGGINGFACE_TOKEN
 
2
  import gradio as gr
3
  from huggingface_hub import InferenceClient
4
 
5
+ HUGGINGFACE_TOKEN = os.getenv("HUGGINGFACE_TOKEN", "").strip()
 
6
 
 
 
7
  client = InferenceClient(
8
  model="HuggingFaceH4/zephyr-7b-beta",
9
  token=HUGGINGFACE_TOKEN