Spaces:
Running
Running
inoki-giskard
commited on
Commit
•
e7115eb
1
Parent(s):
2176294
Fix html escape with None
Browse files- app_debug.py +4 -1
app_debug.py
CHANGED
@@ -60,7 +60,10 @@ def get_jobs_info_in_queue():
|
|
60 |
|
61 |
def get_queue_status():
|
62 |
if len(pipe.jobs) > 0 or pipe.current is not None:
|
63 |
-
|
|
|
|
|
|
|
64 |
else:
|
65 |
return '<div style="padding-top: 5%">No jobs in queue, please submit an evaluation task from another tab.</div>'
|
66 |
|
|
|
60 |
|
61 |
def get_queue_status():
|
62 |
if len(pipe.jobs) > 0 or pipe.current is not None:
|
63 |
+
current = pipe.current
|
64 |
+
if current is None:
|
65 |
+
current = "None"
|
66 |
+
return f'<div style="padding-top: 5%">Current job: {html.escape(current)} <br/> Jobs in queue: <br/> {"".join(get_jobs_info_in_queue())}</div>'
|
67 |
else:
|
68 |
return '<div style="padding-top: 5%">No jobs in queue, please submit an evaluation task from another tab.</div>'
|
69 |
|