mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
13915f9c11
* add script to create configs for test demos * no message * fixes * fixes * fix * test fix * test fix * format * fix
17 lines
252 B
Python
17 lines
252 B
Python
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()
|