aliabd's picture
aliabd HF Staff
Upload with huggingface_hub
eff79e4
raw
history blame
252 Bytes
import gradio as gr
def image_mod(text):
return text[::-1]
demo = gr.Blocks()
with demo:
text = gr.Textbox(label="Input-Output")
btn = gr.Button("Run")
btn.click(image_mod, text, text)
if __name__ == "__main__":
demo.launch()