Littendekitten commited on
Commit
ab298f8
·
verified ·
1 Parent(s): 4a9b043

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,13 +1,13 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- # CPU-compatibel model (geen GPTQ)
5
  chatbot = pipeline(
6
  "text-generation",
7
- model="TheBloke/guanaco-7B-HF", # CPU-friendly model
8
  )
9
 
10
- # Functie die chatgeschiedenis bijhoudt
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 = ""