sitatech commited on
Commit
444c296
·
verified ·
1 Parent(s): acefb8b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from datetime import datetime
3
+
4
+
5
+ def process(request: gr.Request):
6
+ return {"body": "You are connected!", "headers": request.headers, "time": datetime.now()}
7
+
8
+
9
+ demo = gr.Interface(fn=process, inputs=None, outputs=gr.JSON())
10
+ demo.launch()