Bahareh Kavousi nejad commited on
Commit
fd58eaa
·
1 Parent(s): 628bc62

Testing new model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
- # Load the model
5
- chatbot = pipeline("text-generation", model="EleutherAI/gpt-neo-1.3B")
6
 
7
  # Define the chatbot function
8
  def chat(input_text):
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ # Load a lightweight model
5
+ chatbot = pipeline("text-generation", model="distilgpt2")
6
 
7
  # Define the chatbot function
8
  def chat(input_text):