Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the pipeline for text2text-generation using the Blenderbot model
|
5 |
-
|
6 |
|
7 |
|
8 |
# Define the text generation function
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the pipeline for text2text-generation using the Blenderbot model
|
5 |
+
pipe = pipeline(task="text2text-generation", model="facebook/blenderbot-400M-distill")
|
6 |
|
7 |
|
8 |
# Define the text generation function
|