Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
56c6169
1
Parent(s):
390bc59
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
title = "GPT2"
|
| 4 |
description = "Gradio Demo for OpenAI GPT2. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
|
@@ -9,4 +10,8 @@ examples = [
|
|
| 9 |
['Paris is the capital of']
|
| 10 |
]
|
| 11 |
|
| 12 |
-
gr.Interface.load("huggingface/gpt2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio import mix
|
| 3 |
|
| 4 |
title = "GPT2"
|
| 5 |
description = "Gradio Demo for OpenAI GPT2. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
|
|
|
|
| 10 |
['Paris is the capital of']
|
| 11 |
]
|
| 12 |
|
| 13 |
+
io1 = gr.Interface.load("huggingface/gpt2", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples)
|
| 14 |
+
|
| 15 |
+
io2 = gr.Interface.load("huggingface/gpt2-large", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples)
|
| 16 |
+
|
| 17 |
+
mix.Parallel(io1, io2).launch(enable_queue=True)
|