mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-13 11:57:29 +08:00
* some integration tests * more integration tests * more tests * update integration tests * format
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()
|