File size: 786 Bytes
bda449c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)