madhurjindal
commited on
Commit
•
f0f5a18
1
Parent(s):
1161442
Update app.py
Browse files
app.py
CHANGED
@@ -71,24 +71,24 @@ def visualize_github_repo(repo_name, repo_branch):
|
|
71 |
print(s)
|
72 |
print("----")
|
73 |
if "planner" in s:
|
74 |
-
yield ("Planning the Exploration !"
|
75 |
if "parse_plan" in s:
|
76 |
-
yield ("Planning done! Parsing the plan!"
|
77 |
if "explore_file" in s:
|
78 |
yield (
|
79 |
f"Exploration started! Exploring file: {s['explore_file']['explored_files'][-1]} !",
|
80 |
-
None,
|
81 |
)
|
82 |
if "generate_mermaid_code" in s:
|
83 |
yield (
|
84 |
"Exploration done! Gathering thoughts and generating a graph!",
|
85 |
-
None,
|
86 |
)
|
87 |
if "render_mermaid" in s:
|
88 |
|
89 |
yield (
|
90 |
s["render_mermaid"]["messages"][-1].content,
|
91 |
-
s["render_mermaid"]["final_graph"],
|
92 |
)
|
93 |
|
94 |
|
@@ -98,7 +98,7 @@ demo = gr.Interface(
|
|
98 |
gr.Textbox(
|
99 |
label="Repo Name", # Input component label
|
100 |
value="abhishekkrthakur/autoxgb", # Input component placeholder
|
101 |
-
placeholder="Name of the Repo in format author/repo", # Input component description
|
102 |
),
|
103 |
gr.Textbox(
|
104 |
label="Repo Branch", # Input component label
|
@@ -111,10 +111,10 @@ demo = gr.Interface(
|
|
111 |
label="Mermaid Graph", # Output component label
|
112 |
placeholder="Visualization of the functionalities of the Repo", # Output component description
|
113 |
),
|
114 |
-
gr.Image(
|
115 |
-
|
116 |
-
|
117 |
-
),
|
118 |
],
|
119 |
title="Repo Functionality Visualizer",
|
120 |
)
|
|
|
71 |
print(s)
|
72 |
print("----")
|
73 |
if "planner" in s:
|
74 |
+
yield ("Planning the Exploration !")#, None)
|
75 |
if "parse_plan" in s:
|
76 |
+
yield ("Planning done! Parsing the plan!")#, None)
|
77 |
if "explore_file" in s:
|
78 |
yield (
|
79 |
f"Exploration started! Exploring file: {s['explore_file']['explored_files'][-1]} !",
|
80 |
+
# None,
|
81 |
)
|
82 |
if "generate_mermaid_code" in s:
|
83 |
yield (
|
84 |
"Exploration done! Gathering thoughts and generating a graph!",
|
85 |
+
# None,
|
86 |
)
|
87 |
if "render_mermaid" in s:
|
88 |
|
89 |
yield (
|
90 |
s["render_mermaid"]["messages"][-1].content,
|
91 |
+
# s["render_mermaid"]["final_graph"],
|
92 |
)
|
93 |
|
94 |
|
|
|
98 |
gr.Textbox(
|
99 |
label="Repo Name", # Input component label
|
100 |
value="abhishekkrthakur/autoxgb", # Input component placeholder
|
101 |
+
placeholder="Name of the Public Repo in format author/repo", # Input component description
|
102 |
),
|
103 |
gr.Textbox(
|
104 |
label="Repo Branch", # Input component label
|
|
|
111 |
label="Mermaid Graph", # Output component label
|
112 |
placeholder="Visualization of the functionalities of the Repo", # Output component description
|
113 |
),
|
114 |
+
# gr.Image(
|
115 |
+
# label="Rendered Graph", # Output component label
|
116 |
+
# placeholder="Rendered Graph", # Output component description
|
117 |
+
# ),
|
118 |
],
|
119 |
title="Repo Functionality Visualizer",
|
120 |
)
|