Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,7 @@ def generate(text):
|
|
14 |
return result[0]["generated_text"]
|
15 |
|
16 |
|
17 |
-
# defining
|
18 |
-
title = "Text Generation with GPT-2"
|
19 |
examples = [
|
20 |
["The Moon's orbit around Earth has"],
|
21 |
["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
|
@@ -26,7 +25,6 @@ demo = gr.Interface(
|
|
26 |
fn=generate,
|
27 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
28 |
outputs=gr.outputs.Textbox(label="Generated Text"),
|
29 |
-
title=title,
|
30 |
examples=examples
|
31 |
)
|
32 |
|
|
|
14 |
return result[0]["generated_text"]
|
15 |
|
16 |
|
17 |
+
# defining examples
|
|
|
18 |
examples = [
|
19 |
["The Moon's orbit around Earth has"],
|
20 |
["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
|
|
|
25 |
fn=generate,
|
26 |
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
|
27 |
outputs=gr.outputs.Textbox(label="Generated Text"),
|
|
|
28 |
examples=examples
|
29 |
)
|
30 |
|