Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,33 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
language = ''
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
md = "test"
|
11 |
-
CN_md = "测试"
|
12 |
-
|
13 |
-
def initialize_interface():
|
14 |
-
print('hello')
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
with gr.Blocks() as demo:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
initialize_interface()
|
31 |
-
|
32 |
-
if __name__ == "__main__":
|
33 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
import datetime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
with gr.Blocks() as demo:
|
4 |
+
def get_time():
|
5 |
+
return """navigator.language"""
|
6 |
+
dt = gr.Textbox(label="Current time")
|
7 |
+
demo.load(get_time, inputs=None, outputs=dt)
|
8 |
+
|
9 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|