Spaces:
Sleeping
Sleeping
Aiswarya Sankar
commited on
Commit
·
5f0abd6
1
Parent(s):
5db5c14
Refactor stuff
Browse files
app.py
CHANGED
@@ -531,7 +531,7 @@ with gr.Blocks() as demo:
|
|
531 |
# Create the dropdown
|
532 |
# ticket_choices = {git_tickets.value["title"]: ticket for ticket in tickets}
|
533 |
# ticket_titles = [git_tickets.value["title"] for ticket in tickets]
|
534 |
-
ingestTickets = gr.Button("Ingest github tickets").
|
535 |
ticketDropdown = gr.Dropdown(choices=git_titles.value, title="Github Issues")
|
536 |
|
537 |
# Extract the ticket title, body for the selected ticket
|
|
|
531 |
# Create the dropdown
|
532 |
# ticket_choices = {git_tickets.value["title"]: ticket for ticket in tickets}
|
533 |
# ticket_titles = [git_tickets.value["title"] for ticket in tickets]
|
534 |
+
ingestTickets = gr.Button("Ingest github tickets").click(fetchGithubIssues, inputs=[20], outputs=[]).then(create_ticket_dropdown)
|
535 |
ticketDropdown = gr.Dropdown(choices=git_titles.value, title="Github Issues")
|
536 |
|
537 |
# Extract the ticket title, body for the selected ticket
|