Spaces:
Build error
Build error
Jagad1234unique
commited on
Commit
•
9d5c575
1
Parent(s):
87381f3
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,9 @@
|
|
1 |
-
|
2 |
-
from huggingface_hub import InferenceClient
|
3 |
-
|
4 |
-
"""
|
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,
|
12 |
history: list[tuple[str, str]],
|
|
|
1 |
+
pip install adapters
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
from adapters import AutoAdapterModel
|
4 |
|
5 |
+
model = AutoAdapterModel.from_pretrained("undefined")
|
6 |
+
model.load_adapter("Jagad1234unique/12", set_active=True)
|
7 |
def respond(
|
8 |
message,
|
9 |
history: list[tuple[str, str]],
|