Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
# ✅ Add your Hugging Face API token here
|
5 |
-
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta", token=
|
6 |
|
7 |
def explain_and_run_code(code_snippet):
|
8 |
system_message = "You are an expert assistant that explains Python code snippets clearly and concisely."
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
|
4 |
# ✅ Add your Hugging Face API token here
|
5 |
+
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta", token=hf_api_token)
|
6 |
|
7 |
def explain_and_run_code(code_snippet):
|
8 |
system_message = "You are an expert assistant that explains Python code snippets clearly and concisely."
|