Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
# CPU-
|
| 5 |
chatbot = pipeline(
|
| 6 |
"text-generation",
|
| 7 |
-
model="TheBloke/guanaco-
|
| 8 |
)
|
| 9 |
|
| 10 |
-
# Functie die
|
| 11 |
def ginger_ai(message, history):
|
| 12 |
history = history or []
|
| 13 |
prompt = ""
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
+
# Kies een CPU-vriendelijk model (1B parameters)
|
| 5 |
chatbot = pipeline(
|
| 6 |
"text-generation",
|
| 7 |
+
model="TheBloke/guanaco-1B-HF", # werkt op CPU
|
| 8 |
)
|
| 9 |
|
| 10 |
+
# Functie die chatverloop bijhoudt
|
| 11 |
def ginger_ai(message, history):
|
| 12 |
history = history or []
|
| 13 |
prompt = ""
|