Spaces:
Runtime error
Runtime error
refactor
Browse files
app.py
CHANGED
|
@@ -3,7 +3,10 @@ from py_code_analyzer.code_imports_analyzer import CodeImportsAnalyzer
|
|
| 3 |
from py_code_analyzer.imports_graph_visualizer import ImportsGraphVisualizer
|
| 4 |
|
| 5 |
python_files = CodeFetcher().get_python_files("cyyeh", "gradio", "gradio")
|
| 6 |
-
|
| 7 |
-
CodeImportsAnalyzer(python_files)
|
|
|
|
|
|
|
|
|
|
| 8 |
)
|
| 9 |
-
ImportsGraphVisualizer().visualize(
|
|
|
|
| 3 |
from py_code_analyzer.imports_graph_visualizer import ImportsGraphVisualizer
|
| 4 |
|
| 5 |
python_files = CodeFetcher().get_python_files("cyyeh", "gradio", "gradio")
|
| 6 |
+
imports_graph = (
|
| 7 |
+
CodeImportsAnalyzer(python_files)
|
| 8 |
+
.analyze_imports()
|
| 9 |
+
.generate_imports_graph()
|
| 10 |
+
.imports_graph
|
| 11 |
)
|
| 12 |
+
ImportsGraphVisualizer().visualize(imports_graph)
|