Spaces:
Runtime error
Runtime error
Commit
·
e88f71d
1
Parent(s):
7868dd4
entropy memory views
Browse files
app.py
CHANGED
|
@@ -243,22 +243,22 @@ with gr.Blocks(title="Sophia, Torah Codes",css=css,js=js) as app:
|
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
|
| 263 |
|
| 264 |
|
|
|
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
+
with gr.Tab("Memory"):
|
| 247 |
+
with gr.Row():
|
| 248 |
+
c_time2 = gr.Textbox(label="Memory refreshed every second")
|
| 249 |
+
gr.Textbox(
|
| 250 |
+
"Change the value of the slider to calibrate the memory",
|
| 251 |
+
label="",
|
| 252 |
+
)
|
| 253 |
+
period = gr.Slider(
|
| 254 |
+
label="Period of plot", value=1, minimum=0, maximum=10, step=1
|
| 255 |
+
)
|
| 256 |
+
plot = gr.LinePlot(show_label=False)
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
demo.load(lambda: datetime.datetime.now(), None, c_time2, every=1)
|
| 260 |
+
dep = demo.load(get_plot, None, plot, every=1)
|
| 261 |
+
period.change(get_plot, period, plot, every=1, cancels=[dep])
|
| 262 |
|
| 263 |
|
| 264 |
|