drixo commited on
Commit
a14c267
·
verified ·
1 Parent(s): dfc63bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,7 +2,11 @@ import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
  # Connect to Hugging Face model
5
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
 
 
 
6
 
7
  # Example Q&A pairs about Resilient Coders
8
  rc_qa_examples = [
 
2
  from huggingface_hub import InferenceClient
3
 
4
  # Connect to Hugging Face model
5
+
6
+ client = InferenceClient(
7
+ "HuggingFaceH4/zephyr-7b-beta",
8
+ token=os.environ.get("HF_API_TOKEN")
9
+ )
10
 
11
  # Example Q&A pairs about Resilient Coders
12
  rc_qa_examples = [