Esteban Cara de Sexo
commited on
Commit
·
b2be736
1
Parent(s):
a993940
update README
Browse files
app.py
CHANGED
@@ -1,11 +1,8 @@
|
|
1 |
-
|
2 |
-
from
|
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,
|
|
|
1 |
+
# Load model directly
|
2 |
+
from transformers import AutoProcessor, AutoModelForImageTextToText
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
processor = AutoProcessor.from_pretrained("rhymes-ai/Aria-Chat", trust_remote_code=True)
|
5 |
+
model = AutoModelForImageTextToText.from_pretrained("rhymes-ai/Aria-Chat", trust_remote_code=True)
|
6 |
|
7 |
def respond(
|
8 |
message,
|