mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-09 02:00:44 +08:00
a1509850dc
* soft reset and remove a commit, then commit the further commits again * fix flagging for tests * format fix * fixes Co-authored-by: Ali <aliabid94@gmail.com>
16 lines
285 B
Python
16 lines
285 B
Python
import gradio as gr
|
|
|
|
|
|
def print_message(n):
|
|
return "Welcome! This page has loaded for " + n
|
|
|
|
|
|
with gr.Blocks() as demo:
|
|
t = gr.Textbox("Frank", label="Name")
|
|
t2 = gr.Textbox(label="Output")
|
|
demo.load(print_message, t, t2)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch()
|