Spaces:
Build error
Build error
freemt
commited on
Commit
·
d682f18
1
Parent(s):
a65b4e5
Update docs
Browse files- radiobee/__main__.py +7 -8
radiobee/__main__.py
CHANGED
@@ -461,7 +461,7 @@ if __name__ == "__main__":
|
|
461 |
plt.close("all")
|
462 |
|
463 |
# if sys.platform not in ["win32", "linux"]:
|
464 |
-
plt.switch_backend(
|
465 |
|
466 |
# figsize=(13, 8), (339, 212) mm on '1280x800+0+0'
|
467 |
fig = plt.figure(figsize=(13, 8))
|
@@ -575,13 +575,12 @@ if __name__ == "__main__":
|
|
575 |
).strip()
|
576 |
|
577 |
css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
|
|
578 |
# css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
css_output_file =
|
583 |
-
".output_file {height: 4rem !important; width: 100% !important;}"
|
584 |
-
)
|
585 |
|
586 |
logger.info("running at port %s", server_port)
|
587 |
|
@@ -603,7 +602,7 @@ if __name__ == "__main__":
|
|
603 |
# theme="darkgrass",
|
604 |
theme="grass",
|
605 |
layout="vertical", # horizontal unaligned
|
606 |
-
allow_flagging="auto"
|
607 |
flagging_options=[
|
608 |
"fatal",
|
609 |
"bug",
|
|
|
461 |
plt.close("all")
|
462 |
|
463 |
# if sys.platform not in ["win32", "linux"]:
|
464 |
+
plt.switch_backend("Agg") # to cater for Mac, thanks to WhiteFox
|
465 |
|
466 |
# figsize=(13, 8), (339, 212) mm on '1280x800+0+0'
|
467 |
fig = plt.figure(figsize=(13, 8))
|
|
|
575 |
).strip()
|
576 |
|
577 |
css_image = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
578 |
+
|
579 |
# css = ".output_image, .input_image {height: 20rem !important; width: 100% !important;}"
|
580 |
+
|
581 |
+
css_input_file = ".input_file {height: 8rem !important; width: 100% !important;}"
|
582 |
+
|
583 |
+
css_output_file = ".output_file {height: 4rem !important; width: 100% !important;}"
|
|
|
|
|
584 |
|
585 |
logger.info("running at port %s", server_port)
|
586 |
|
|
|
602 |
# theme="darkgrass",
|
603 |
theme="grass",
|
604 |
layout="vertical", # horizontal unaligned
|
605 |
+
allow_flagging="manual", # "auto"
|
606 |
flagging_options=[
|
607 |
"fatal",
|
608 |
"bug",
|