mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
16 lines
284 B
Python
16 lines
284 B
Python
import gradio as gr
|
|
|
|
with gr.Blocks() as demo:
|
|
gr.Code(
|
|
value="""def hello_world():
|
|
return "Hello, world!"
|
|
|
|
print(hello_world())""",
|
|
language="python",
|
|
interactive=True,
|
|
show_label=False,
|
|
)
|
|
|
|
if __name__ == "__main__":
|
|
demo.launch()
|