Stepan Sypkov
commited on
Commit
·
f311750
1
Parent(s):
1aaf4f4
change model7
Browse files
app.py
CHANGED
|
@@ -2,7 +2,8 @@ import gradio as gr
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import torch
|
| 4 |
# Initialize the pipeline for text generation
|
| 5 |
-
pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.9.4-llama3.1-8b")
|
|
|
|
| 6 |
|
| 7 |
def respond(
|
| 8 |
message,
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
import torch
|
| 4 |
# Initialize the pipeline for text generation
|
| 5 |
+
# pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.9.4-llama3.1-8b")
|
| 6 |
+
pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.9.4-llama3.1-8b", torch_dtype=torch.float16)
|
| 7 |
|
| 8 |
def respond(
|
| 9 |
message,
|