Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def infer(Input, task):
|
|
18 |
return output[0]["generated_text"]
|
19 |
|
20 |
|
21 |
-
description = "Explore the capabilities of text generation."
|
22 |
title = "T5 Playground"
|
23 |
interface = gr.Interface(infer,
|
24 |
title = title,
|
@@ -32,5 +32,6 @@ interface = gr.Interface(infer,
|
|
32 |
["I love machine learning!", "Translation"],
|
33 |
["I went to market and.", "Linguistic Acceptibility"],
|
34 |
["what is the meaning to life?The answer to the ultimate question of life, the universe and everything is 42.", "Question Answering"]],
|
|
|
35 |
)
|
36 |
interface.launch()
|
|
|
18 |
return output[0]["generated_text"]
|
19 |
|
20 |
|
21 |
+
description = "Explore the capabilities of text generation. If you can't find the task you're looking for, pick Other and write your prompt."
|
22 |
title = "T5 Playground"
|
23 |
interface = gr.Interface(infer,
|
24 |
title = title,
|
|
|
32 |
["I love machine learning!", "Translation"],
|
33 |
["I went to market and.", "Linguistic Acceptibility"],
|
34 |
["what is the meaning to life?The answer to the ultimate question of life, the universe and everything is 42.", "Question Answering"]],
|
35 |
+
theme = "grass"
|
36 |
)
|
37 |
interface.launch()
|