Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,13 @@ from huggingface_hub import InferenceClient
|
|
5 |
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
|
6 |
"""
|
7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
def respond(
|
11 |
message,
|
|
|
5 |
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
|
6 |
"""
|
7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
8 |
+
from transformers import pipeline
|
9 |
|
10 |
+
messages = [
|
11 |
+
{"role": "user", "content": "Who are you?"},
|
12 |
+
]
|
13 |
+
pipe = pipeline("text-generation", model="pentagoniac/SEMIKONG-70B")
|
14 |
+
pipe(messages)
|
15 |
|
16 |
def respond(
|
17 |
message,
|