Spaces:
Sleeping
Sleeping
jy-raychen
commited on
Commit
•
cc1fe64
1
Parent(s):
2ee1ac9
init with demo code
Browse files
app.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
5 |
-
print("Request headers dictionary:", request.headers)
|
6 |
-
print("IP address:", request.client.host)
|
7 |
-
print("Query parameters:", dict(request.query_params))
|
8 |
-
return str(request.url)
|
9 |
|
10 |
-
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name
|
|
|
|
|
|
|
|
|
5 |
|
6 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
|
8 |
+
demo.launch()
|