Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
title = "NLP Tasks - T0pp"
|
4 |
+
description = "This T0pp language model can perform natural language processing (NLP) tasks such as inference, paraphrasing, question-answering and summarization. You can specify the task and query in natural language in the Input Text box."
|
5 |
+
examples = [
|
6 |
+
['A is the son's of B's uncle. What is the family relationship between A and B?'],["Question A: How is air traffic controlled?
|
7 |
+
Question B: How do you become an air traffic controller?
|
8 |
+
Pick one: these questions are duplicates or not duplicates."],["Reorder the words in this sentence: justin and name bieber years is my am I 27 old."]
|
9 |
+
]
|
10 |
+
|
11 |
+
gr.Interface.load("huggingface/bigscience/T0pp", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title, description=description, examples=examples, enable_queue=True).launch()
|