Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from transformers import pipeline
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize the text generation pipeline
|
5 |
-
generator = pipeline("text-generation", model="
|
6 |
|
7 |
def generate_response(prompt):
|
8 |
"""Generate text based on the user's prompt."""
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Initialize the text generation pipeline
|
5 |
+
generator = pipeline("text-generation", model="distilgpt2")
|
6 |
|
7 |
def generate_response(prompt):
|
8 |
"""Generate text based on the user's prompt."""
|