madhurjindal commited on
Commit
cda9f17
·
verified ·
1 Parent(s): 3bef67a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -14
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 ("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 (
80
- f"Exploration started! Exploring file: {s['explore_file']['explored_files'][-1]} !",
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(