Spaces:
Sleeping
Sleeping
Commit
·
eaa1129
1
Parent(s):
48826e2
Replace apt installation command for Graphviz with apt-get in app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ with gr.Blocks(theme=theme, title="MarkDown SVG Generator", fill_height=True) as
|
|
38 |
import subprocess
|
39 |
try:
|
40 |
subprocess.run(["apt", "update"], check=True)
|
41 |
-
|
42 |
app.queue(default_concurrency_limit=25).launch(show_api=True, show_error=True, debug=True)
|
43 |
except subprocess.CalledProcessError:
|
44 |
print("Graphviz is not installed. Please install it using `apt install graphviz` and try again.")
|
|
|
38 |
import subprocess
|
39 |
try:
|
40 |
subprocess.run(["apt", "update"], check=True)
|
41 |
+
subprocess.run(["apt-get", "install", "-y", "graphviz"], check=True)
|
42 |
app.queue(default_concurrency_limit=25).launch(show_api=True, show_error=True, debug=True)
|
43 |
except subprocess.CalledProcessError:
|
44 |
print("Graphviz is not installed. Please install it using `apt install graphviz` and try again.")
|