Ahsen Khaliq commited on
Commit
c2838bd
1 Parent(s): 7a1543b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ title = "t5-base-fine-tuned-on-jfleg"
3
+ description = "Gradio Demo for T5-base model fine-tuned on the JFLEG dataset with the objective of text2text-generation. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
4
+ article = "<p style='text-align: center'><a href='https://huggingface.co/Modfiededition/t5-base-fine-tuned-on-jfleg' target='_blank'>Huggingface Model</a></p>"
5
+ examples = [
6
+ ['I am write on AI']
7
+ ]
8
+ gr.Interface.load("huggingface/Modfiededition/t5-base-fine-tuned-on-jfleg", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()