Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ from transformers import pipeline
|
|
| 5 |
# Replace "EleutherAI/gpt-neo-2.7B" with other models like "mosaicml/mpt-7b-chat" or "OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5"
|
| 6 |
generation_pipeline = pipeline(
|
| 7 |
"text-generation",
|
| 8 |
-
model="EleutherAI/gpt-neo-2.7B",
|
| 9 |
-
device
|
| 10 |
)
|
| 11 |
|
| 12 |
def dental_chatbot_response(message, history):
|
|
|
|
| 5 |
# Replace "EleutherAI/gpt-neo-2.7B" with other models like "mosaicml/mpt-7b-chat" or "OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5"
|
| 6 |
generation_pipeline = pipeline(
|
| 7 |
"text-generation",
|
| 8 |
+
model="EleutherAI/gpt-neo-2.7B",
|
| 9 |
+
device=-1 # Use CPU explicitly
|
| 10 |
)
|
| 11 |
|
| 12 |
def dental_chatbot_response(message, history):
|