Spaces:
Runtime error
Runtime error
refactor
Browse files
app.py
CHANGED
|
@@ -74,8 +74,6 @@ if clicked_ok_button and owner and repo:
|
|
| 74 |
|
| 75 |
with st.spinner("Generating graph visualization file..."):
|
| 76 |
generate_graph_visualization_file(imports_graph, f"{owner}/{repo}")
|
| 77 |
-
|
| 78 |
-
with st.spinner("Showing the graph..."):
|
| 79 |
graph_visualization_file = read_graph_visualization_file()
|
| 80 |
st.download_button(
|
| 81 |
"Download the result file",
|
|
@@ -83,5 +81,7 @@ if clicked_ok_button and owner and repo:
|
|
| 83 |
file_name="result.html",
|
| 84 |
mime="text/html",
|
| 85 |
)
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
components.html(graph_visualization_file, height=600, scrolling=True)
|
|
|
|
| 74 |
|
| 75 |
with st.spinner("Generating graph visualization file..."):
|
| 76 |
generate_graph_visualization_file(imports_graph, f"{owner}/{repo}")
|
|
|
|
|
|
|
| 77 |
graph_visualization_file = read_graph_visualization_file()
|
| 78 |
st.download_button(
|
| 79 |
"Download the result file",
|
|
|
|
| 81 |
file_name="result.html",
|
| 82 |
mime="text/html",
|
| 83 |
)
|
| 84 |
+
|
| 85 |
+
if show_graph_visualization:
|
| 86 |
+
with st.spinner("Showing the graph..."):
|
| 87 |
components.html(graph_visualization_file, height=600, scrolling=True)
|