Spaces:
Build error
Build error
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 text generation pipeline
|
| 5 |
-
pipe = pipeline("text-generation", model="
|
| 6 |
|
| 7 |
# Define the function for text generation
|
| 8 |
def generate(text):
|
|
|
|
| 2 |
from transformers import pipeline
|
| 3 |
|
| 4 |
# Load the text generation pipeline
|
| 5 |
+
pipe = pipeline("text-generation", model="openai-community/gpt2")
|
| 6 |
|
| 7 |
# Define the function for text generation
|
| 8 |
def generate(text):
|