madhurjindal
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -72,25 +72,17 @@ def visualize_github_repo(repo_name, repo_branch, mistral_api_key):
|
|
72 |
print(s)
|
73 |
print("----")
|
74 |
if "planner" in s:
|
75 |
-
yield
|
76 |
if "parse_plan" in s:
|
77 |
-
yield
|
78 |
if "explore_file" in s:
|
79 |
-
yield
|
80 |
-
|
81 |
-
# None,
|
82 |
-
)
|
83 |
if "generate_mermaid_code" in s:
|
84 |
-
yield
|
85 |
-
"Exploration done! Gathering thoughts and generating a graph!",
|
86 |
-
# None,
|
87 |
-
)
|
88 |
if "render_mermaid" in s:
|
89 |
|
90 |
-
yield
|
91 |
-
s["render_mermaid"]["messages"][-1].content,
|
92 |
-
# s["render_mermaid"]["final_graph"],
|
93 |
-
)
|
94 |
|
95 |
|
96 |
demo = gr.Interface(
|
|
|
72 |
print(s)
|
73 |
print("----")
|
74 |
if "planner" in s:
|
75 |
+
yield "Planning the Exploration !"#, None)
|
76 |
if "parse_plan" in s:
|
77 |
+
yield "Planning done! Parsing the plan!"#, None)
|
78 |
if "explore_file" in s:
|
79 |
+
yield f"Exploration started! Exploring file: {s['explore_file']['explored_files'][-1]} !",
|
80 |
+
|
|
|
|
|
81 |
if "generate_mermaid_code" in s:
|
82 |
+
yield "Exploration done! Gathering thoughts and generating a graph!",
|
|
|
|
|
|
|
83 |
if "render_mermaid" in s:
|
84 |
|
85 |
+
yield s["render_mermaid"]["messages"][-1].content
|
|
|
|
|
|
|
86 |
|
87 |
|
88 |
demo = gr.Interface(
|