Spaces:
Sleeping
Sleeping
madhurjindal
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,26 +1,27 @@
|
|
1 |
import os
|
2 |
-
from langgraph.graph import END, START, StateGraph
|
3 |
|
4 |
-
from langchain_core.tracers.context import tracing_v2_enabled
|
5 |
-
|
6 |
-
from prompts import *
|
7 |
-
import gradio as gr
|
8 |
-
|
9 |
-
|
10 |
-
from utils import (
|
11 |
-
load_github_codebase,
|
12 |
-
router,
|
13 |
-
get_plan_for_codebase,
|
14 |
-
parse_plan,
|
15 |
-
explore_file,
|
16 |
-
final_mermaid_code_generation,
|
17 |
-
extract_mermaid_and_generate_graph,
|
18 |
-
GraphState,
|
19 |
-
)
|
20 |
|
21 |
|
22 |
def visualize_github_repo(repo_name, repo_branch, mistral_api_key):
|
23 |
os.environ['MISTRAL_API_KEY'] = mistral_api_key
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
yield ("Looking at the Repo!", None)
|
26 |
documents = load_github_codebase(repo_name, repo_branch)
|
|
|
1 |
import os
|
|
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
|
5 |
def visualize_github_repo(repo_name, repo_branch, mistral_api_key):
|
6 |
os.environ['MISTRAL_API_KEY'] = mistral_api_key
|
7 |
+
|
8 |
+
from langgraph.graph import END, START, StateGraph
|
9 |
+
from langchain_core.tracers.context import tracing_v2_enabled
|
10 |
+
|
11 |
+
from prompts import *
|
12 |
+
import gradio as gr
|
13 |
+
|
14 |
+
|
15 |
+
from utils import (
|
16 |
+
load_github_codebase,
|
17 |
+
router,
|
18 |
+
get_plan_for_codebase,
|
19 |
+
parse_plan,
|
20 |
+
explore_file,
|
21 |
+
final_mermaid_code_generation,
|
22 |
+
extract_mermaid_and_generate_graph,
|
23 |
+
GraphState,
|
24 |
+
)
|
25 |
|
26 |
yield ("Looking at the Repo!", None)
|
27 |
documents = load_github_codebase(repo_name, repo_branch)
|