tiny-ctrl / app.py
Ahsen Khaliq
Create app.py
aab8c56
raw history blame
No virus
625 Bytes
import gradio as gr
title = "Tiny CTRL"
description = "Gradio Demo for Tiny CTRL. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1909.05858' target='_blank'>CTRL: A Conditional Transformer Language Model for Controllable Generation</a></p>"
examples = [
['My name is Thomas and my main']
]
gr.Interface.load("huggingface/tiny-ctrl", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples).launch(enable_queue=True)