Spaces:
Running
Running
File size: 405 Bytes
b115231 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
# Function to reverse the input text
def reverse_text(text):
return text[::-1]
# Gradio interface
interface = gr.Interface(
fn=reverse_text, # Function to call
inputs="text", # Input type
outputs="text", # Output type
title="Text Reverser",
description="Enter some text, and the app will reverse it for you!"
)
# Launch the interface
interface.launch() |