Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
title = "T0"
|
3 |
+
description = "Natural Language Processing is evolving. T0 language model was trained in multiple NLP tasks like summarization, paraphrase identification, question answering, natural language inference, sentiment classification and so forth"
|
4 |
+
examples = [
|
5 |
+
["'Earth is the third planet from the Sun and the only astronomical object known to harbour and support life. 29.2% of Earth's surface is land consisting of continents and islands. The remaining 70.8% is covered with water, mostly by oceans, seas, gulfs, and other salt-water bodies, but also by lakes, rivers, and other freshwater, which together constitute the hydrosphere.' How would you rephrase that in a few words?"],["'i lost my password' 'i want to change my password' Pick one: these questions are duplicates or not duplicates."],["I know that the answer to 'What is the only planet that supports life in the solar system?' is in 'Earth is the third planet from the Sun and the only astronomical object known to harbour and support life. 29.2% of Earth's surface is land consisting of continents and islands. The remaining 70.8% is covered with water, mostly by oceans, seas, gulfs, and other salt-water bodies, but also by lakes, rivers, and other freshwater, which together constitute the hydrosphere.'. Can you tell me what it is?"], ["Suppose 'i am the father of a beautiful boy named John'. Can we infer that 'I have a son'?"], ["One customer said: 'this product does not have the features shown on the website'. Is this review positive or negative?"]
|
6 |
+
]
|
7 |
+
gr.Interface.load("huggingface/bigscience/T0pp", inputs=gr.inputs.Textbox(lines=8, label="Input Text"),title=title,description=description, examples=examples,enable_queue=True).launch()
|