Spaces:
Sleeping
Sleeping
Create helloworld.py
Browse files- 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
|