madhurjindal commited on
Commit
60f0758
β€’
1 Parent(s): f0f5a18

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +47 -1
README.md CHANGED
@@ -10,4 +10,50 @@ pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  license: apache-2.0
11
  ---
12
 
13
+ # Github Repo Visualizer 🌍
14
+
15
+ Github Repo Visualizer is a tool to visualize GitHub repositories using Gradio.
16
+
17
+ ## Table of Contents
18
+ - [Github Repo Visualizer 🌍](#github-repo-visualizer-)
19
+ - [Table of Contents](#table-of-contents)
20
+ - [Installation](#installation)
21
+ - [Usage](#usage)
22
+ - [App Flow](#app-flow)
23
+
24
+ ## Installation
25
+
26
+ 1. Clone the repository:
27
+ ```sh
28
+ git clone https://github.com/yourusername/Github-Repo-Visualizer.git
29
+ cd Github-Repo-Visualizer
30
+ ```
31
+
32
+ 2. Install the required dependencies:
33
+ ```sh
34
+ pip install -r requirements.txt
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ To run the application, execute:
40
+ ```sh
41
+ python app.py
42
+ ```
43
+
44
+ # App Flow
45
+
46
+ ```mermaid
47
+ graph TD
48
+ A[Input Repo] --Get Repo Info--> B[Load Repo]
49
+ B --Plan a exploration strategy--> C[planner]
50
+ C --Explore files based on graph--> D[explore_file]
51
+ D --Summarize dependencies and functionalities--> E[get_file_content_summary]
52
+ E --Build undersrtanding and generte graph--> F[generate_mermaid_code]
53
+ F --Fix errors and render--> G[render_mermaid]
54
+ ```
55
+
56
+ - Please visit `prompt.py` to see the different prompts used for each functionality.
57
+ - Please note that the exploration is capped to top 25 files based on the plan.
58
+ - `utils.py` contains all the nodes and edge functions used in the graph.
59
+ - `app.py` contains the main code for graph compilation and run.