Spaces:
Sleeping
Sleeping
Commit
·
8beb821
1
Parent(s):
8f0a267
Test
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ from huggingface_hub import InferenceClient
|
|
5 |
"""
|
6 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
7 |
"""
|
8 |
-
|
|
|
9 |
|
10 |
|
11 |
def respond(
|
|
|
5 |
"""
|
6 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
7 |
"""
|
8 |
+
hf_token = os.getenv("user_token")
|
9 |
+
client = InferenceClient("Qwen/Qwen2.5-7B-Instruct", token=hf_token)
|
10 |
|
11 |
|
12 |
def respond(
|