Aiswarya Sankar commited on
Commit
5c87843
·
1 Parent(s): 96b5c18

Update the app

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -81,9 +81,9 @@ global tickets
81
  global ticket_choices
82
  tickets = []
83
 
 
 
84
  repoName = "https://github.com/gradio-app/gradio.git"
85
- # repoName = os.environ['REPO_NAME']
86
- print(repoName)
87
 
88
  embeddings = OpenAIEmbeddings(disallowed_special=())
89
 
@@ -106,6 +106,9 @@ def index_repo(textbox: str, dropdown: str) -> Response:
106
  "GenerativeAgents": "https://github.com/joonspk-research/generative_agents.git"
107
  }
108
 
 
 
 
109
  if textbox != "":
110
  repo = textbox
111
  else:
 
81
  global ticket_choices
82
  tickets = []
83
 
84
+
85
+ repo_name = gr.State()
86
  repoName = "https://github.com/gradio-app/gradio.git"
 
 
87
 
88
  embeddings = OpenAIEmbeddings(disallowed_special=())
89
 
 
106
  "GenerativeAgents": "https://github.com/joonspk-research/generative_agents.git"
107
  }
108
 
109
+ repo_name.value = textbox
110
+ print("STATE VALUE: " + str(repo_name.value))
111
+
112
  if textbox != "":
113
  repo = textbox
114
  else: