yes2code commited on
Commit
09848aa
·
1 Parent(s): b218916

Create helloworld.py

Browse files
Files changed (1) hide show
  1. helloworld.py +10 -0
helloworld.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ with gr.Blocks(analytics_enabled=False, title="Test") as app:
3
+ gr.Label('Hello World!')
4
+ def greet(name):
5
+ return "Hello " + name + "!!"
6
+
7
+ #app = gr.Interface(fn=greet, inputs="text", outputs="text")
8
+ #print('before launch')
9
+ app.launch(share=True,)
10
+ #print('after launch') # executes