Spaces:
Running
Running
Update space.py
Browse files
space.py
CHANGED
@@ -103,6 +103,16 @@ with gr.Blocks() as demo:
|
|
103 |
btn = gr.Button("Run process")
|
104 |
btn.click(fn_process, outputs=logs)
|
105 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
"""
|
107 |
|
108 |
with gr.Blocks() as demo:
|
|
|
103 |
btn = gr.Button("Run process")
|
104 |
btn.click(fn_process, outputs=logs)
|
105 |
```
|
106 |
+
|
107 |
+
## TODO
|
108 |
+
|
109 |
+
- [ ] display logs with colors (front-end)
|
110 |
+
- [ ] format logs client-side (front-end)
|
111 |
+
- [ ] scrollable logs if more than N lines (front-end)
|
112 |
+
- [ ] format each log only once (front-end)
|
113 |
+
- [ ] stop process if `run_process` gets cancelled (back-end)
|
114 |
+
- [ ] correctly pass error stacktrace in `run_thread` (back-end)
|
115 |
+
- [ ] disable interactivity + remove all code editing logic (both?)
|
116 |
"""
|
117 |
|
118 |
with gr.Blocks() as demo:
|