Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
from gradio import mix
|
3 |
-
from transformers import pipeline
|
4 |
-
|
5 |
-
generator = pipeline("text-generation", model="distilgpt2")
|
6 |
-
generator(
|
7 |
-
"In this course, we will teach you how to",
|
8 |
-
max_length=30,
|
9 |
-
num_return_sequences=2,
|
10 |
-
)
|
11 |
-
|
12 |
|
13 |
title = "Miniature"
|
14 |
description = "Gradio Demo for a miniature with GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
|
|
1 |
import gradio as gr
|
2 |
from gradio import mix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
title = "Miniature"
|
5 |
description = "Gradio Demo for a miniature with GPT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|