text_inverter / app.py
AlbML's picture
Add application file
bda449c
raw
history blame contribute delete
786 Bytes
import gradio as gr
def simple_app(string: str) -> str:
"Invert the string"
return string[::-1]
if __name__ == "__main__":
title = "Text Inversion Demo"
description = "Let's say you want to invert a word - 'Andromeda'. You can do it using this awesome tool!!!! Try Me :)"
article = "<p style='text-align: center'><a href='https://www.youtube.com/watch?v=M5iVFGU3VoI&pp=ygUUaW52ZXJ0IHN0cmluZyBweXRob24%3D' target='_blank'>If you want to watch youtube tutorial</a></p>"
examples = ['Saturn']
interpretation = 'default'
enable_queue = True
gr.Interface(
fn=simple_app,
inputs='text',
outputs='text',
title=title,
description=description,
article=article,
examples=examples,
).launch(share=True)