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 = "
" 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)