Spaces:
Build error
Build error
Bahareh Kavousi nejad
commited on
Commit
·
fd58eaa
1
Parent(s):
628bc62
Testing new model
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
-
# Load
|
| 5 |
-
chatbot = pipeline("text-generation", model="
|
| 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):
|