AhzamGradioApp / app.py
Ahzam96's picture
Update app.py
b658b62 verified
raw
history blame contribute delete
350 Bytes
import gradio as gr
def reverse_text(text):
return text[::-1]
# Define the Gradio interface
demo = gr.Interface(
fn=reverse_text,
inputs=gr.Textbox(lines=2, placeholder="Enter text here..."),
outputs="text",
title="Text Reverser",
description="Enter any text and this app will reverse it."
)
# Launch the app
demo.launch()