Spaces:
Sleeping
Sleeping
Commit
·
f1c9cd6
1
Parent(s):
c7cc4b1
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,11 @@ def gen_text(text):
|
|
| 12 |
else:
|
| 13 |
return "Enter text"
|
| 14 |
|
| 15 |
-
iface = gr.Interface(fn=gen_text,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
iface.launch()
|
| 17 |
|
|
|
|
| 12 |
else:
|
| 13 |
return "Enter text"
|
| 14 |
|
| 15 |
+
iface = gr.Interface(fn=gen_text,
|
| 16 |
+
inputs="text",
|
| 17 |
+
outputs="text",
|
| 18 |
+
title="Text Generation using GPT-2",
|
| 19 |
+
description="Example of text generation using OpenAI GPT-2",
|
| 20 |
+
)
|
| 21 |
iface.launch()
|
| 22 |
|