File size: 320 Bytes
86fe4d3
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr

def reverse_text(input_text):
    return input_text[::-1]

iface = gr.Interface(fn=reverse_text, 
                     inputs="text", 
                     outputs="text",
                     title="Text Reverser",
                     description="Enter text to see it reversed.")

iface.launch()