Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
|
|
3 |
|
4 |
def value_func():
|
5 |
return pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
gr.DataFrame(value=value_func)
|
|
|
9 |
|
10 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
+
import time
|
4 |
|
5 |
def value_func():
|
6 |
return pd.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
gr.DataFrame(value=value_func)
|
10 |
+
gr.Textbox(value=time.time, every=1)
|
11 |
|
12 |
demo.launch()
|