Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
import torch
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
-
model_path = "
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|
9 |
|
@@ -16,7 +16,7 @@ def chat(prompt):
|
|
16 |
demo = gr.Interface(
|
17 |
fn=chat,
|
18 |
inputs=gr.Textbox(placeholder="Enter your message here", lines=5),
|
19 |
-
outputs=gr.Textbox(label="
|
20 |
)
|
21 |
|
22 |
if __name__ == "__main__":
|
|
|
3 |
import torch
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
|
6 |
+
model_path = "TheBloke/dolphin-2.7-mixtral-8x7b-GGUF"
|
7 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
8 |
model = AutoModelForCausalLM.from_pretrained(model_path)
|
9 |
|
|
|
16 |
demo = gr.Interface(
|
17 |
fn=chat,
|
18 |
inputs=gr.Textbox(placeholder="Enter your message here", lines=5),
|
19 |
+
outputs=gr.Textbox(label="Response", lines=5)
|
20 |
)
|
21 |
|
22 |
if __name__ == "__main__":
|