Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from gradio.mix import Series
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
description = "Select from a language model tab. Input text and submit."
|
|
@@ -41,7 +41,4 @@ generator4 = gr.Interface(fn=model4, inputs=gr.inputs.Textbox(lines=5, label="In
|
|
| 41 |
generator5 = gr.Interface(fn=model5, inputs=gr.inputs.Textbox(lines=5, label="Input Text"), outputs=gr.outputs.Textbox(label="Generated Text"),
|
| 42 |
examples=examples)
|
| 43 |
|
| 44 |
-
|
| 45 |
-
["GPT-Neo-1.3B", "Bloom-560M", "GPT-Neo-125M", "Distil GPT2 Finetuned", "GPT-NEO-125M Finetuned"])
|
| 46 |
-
|
| 47 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from gradio.mix import Series Parallel
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
description = "Select from a language model tab. Input text and submit."
|
|
|
|
| 41 |
generator5 = gr.Interface(fn=model5, inputs=gr.inputs.Textbox(lines=5, label="Input Text"), outputs=gr.outputs.Textbox(label="Generated Text"),
|
| 42 |
examples=examples)
|
| 43 |
|
| 44 |
+
gr.Parallel(generator1,generator2,generator3).launch()
|
|
|
|
|
|
|
|
|