mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
edcd5748f6
* Fix the Playground on the website to trigger run_code() and install() with debounce and to display errors * Remove an unused function, make_full_screen() * Format demo/hello_world/run.py * Update notebook * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
10 lines
185 B
Python
10 lines
185 B
Python
import gradio as gr
|
|
|
|
def greet(name):
|
|
return "Hello " + name + "!"
|
|
|
|
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch()
|