madhurjindal commited on
Commit
c1a929e
·
verified ·
1 Parent(s): 60f0758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from langgraph.graph import END, START, StateGraph
2
 
3
  from langchain_core.tracers.context import tracing_v2_enabled
@@ -18,7 +19,9 @@ from utils import (
18
  )
19
 
20
 
21
- def visualize_github_repo(repo_name, repo_branch):
 
 
22
  yield ("Looking at the Repo!", None)
23
  documents = load_github_codebase(repo_name, repo_branch)
24
  yield ("Repo loaded!", None)
@@ -105,6 +108,11 @@ demo = gr.Interface(
105
  value="main", # Input component placeholder
106
  placeholder="Branch to explore", # Input component description
107
  ),
 
 
 
 
 
108
  ],
109
  outputs=[
110
  gr.Textbox(
 
1
+ import os
2
  from langgraph.graph import END, START, StateGraph
3
 
4
  from langchain_core.tracers.context import tracing_v2_enabled
 
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)
27
  yield ("Repo loaded!", None)
 
108
  value="main", # Input component placeholder
109
  placeholder="Branch to explore", # Input component description
110
  ),
111
+ gr.Textbox(
112
+ label="Mistral API Key", # Input component label
113
+ # value="main", # Input component placeholder
114
+ placeholder="Mistral API Key from mistral.ai", # Input component description
115
+ ),
116
  ],
117
  outputs=[
118
  gr.Textbox(