Aiswarya Sankar commited on
Commit
e39be17
·
1 Parent(s): b7de6e5

update file

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -540,8 +540,7 @@ with gr.Blocks() as demo:
540
  # ticket_choices = {git_tickets.value["title"]: ticket for ticket in tickets}
541
  # ticket_titles = [git_tickets.value["title"] for ticket in tickets]
542
  ticketDropdown = gr.Dropdown(choices=create_ticket_dropdown(), title="Github Issues", visible=False)
543
- ingestTickets = gr.Button("Ingest github tickets").click(fetchGithubIssues).then(create_ticket_dropdown, inputs=[], outputs=ticketDropdown)
544
-
545
 
546
  # Extract the ticket title, body for the selected ticket
547
  chatbot = gr.Chatbot()
@@ -659,8 +658,7 @@ with gr.Blocks() as demo:
659
  )
660
 
661
 
662
- ingest_btn.click(fn=index_repo, inputs=[repoTextBox, ingestedRepos], outputs=[success_response, launch_product], api_name="index_repo")
663
- # .then(fn=fetchGithubIssues, inputs=[20], outputs=[])
664
  # ingest_btn.click(fn=)
665
 
666
 
 
540
  # ticket_choices = {git_tickets.value["title"]: ticket for ticket in tickets}
541
  # ticket_titles = [git_tickets.value["title"] for ticket in tickets]
542
  ticketDropdown = gr.Dropdown(choices=create_ticket_dropdown(), title="Github Issues", visible=False)
543
+ ingestTickets = gr.Button("Ingest github tickets").click(create_ticket_dropdown, inputs=[], outputs=ticketDropdown) # (fetchGithubIssues).then
 
544
 
545
  # Extract the ticket title, body for the selected ticket
546
  chatbot = gr.Chatbot()
 
658
  )
659
 
660
 
661
+ ingest_btn.click(fn=index_repo, inputs=[repoTextBox, ingestedRepos], outputs=[success_response, launch_product], api_name="index_repo").then(fn=fetchGithubIssues)
 
662
  # ingest_btn.click(fn=)
663
 
664