Spaces:
Running
Running
Aiswarya Sankar
commited on
Commit
·
02a22e9
1
Parent(s):
b3d81c3
Remove naming
Browse files
app.py
CHANGED
@@ -188,9 +188,9 @@ def index_repo(textbox: str, dropdown: str) -> Response:
|
|
188 |
repo = "/".join(repoName[:-4].split("/")[-2:])
|
189 |
tickets = fetchGithubIssues(repo, 10)
|
190 |
|
191 |
-
# Create the dropdown
|
192 |
-
ticket_choices = {ticket["title"]: ticket for ticket in tickets}
|
193 |
-
ticket_titles = [ticket["title"] for ticket in tickets]
|
194 |
|
195 |
return {
|
196 |
success_response: "SUCCESS",
|
@@ -531,15 +531,15 @@ with gr.Blocks() as demo:
|
|
531 |
msg = gr.Textbox()
|
532 |
clear = gr.Button("Clear")
|
533 |
|
534 |
-
if index == 0:
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
else:
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
clear.click(lambda: None, None, chatbot, queue=False)
|
544 |
|
545 |
|
|
|
188 |
repo = "/".join(repoName[:-4].split("/")[-2:])
|
189 |
tickets = fetchGithubIssues(repo, 10)
|
190 |
|
191 |
+
# # Create the dropdown
|
192 |
+
# ticket_choices = {ticket["title"]: ticket for ticket in tickets}
|
193 |
+
# ticket_titles = [ticket["title"] for ticket in tickets]
|
194 |
|
195 |
return {
|
196 |
success_response: "SUCCESS",
|
|
|
531 |
msg = gr.Textbox()
|
532 |
clear = gr.Button("Clear")
|
533 |
|
534 |
+
# if index == 0:
|
535 |
+
# msg.submit(solveGithubIssue, [ticketDropdown, chatbot], [msg, chatbot], queue=False).then(
|
536 |
+
# bot, chatbot, chatbot
|
537 |
+
# )
|
538 |
+
ticketDropdown.change(solveGithubIssue, inputs=[ticketDropdown, chatbot], outputs=[chatbot])
|
539 |
+
# else:
|
540 |
+
msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
|
541 |
+
bot, chatbot, chatbot
|
542 |
+
)
|
543 |
clear.click(lambda: None, None, chatbot, queue=False)
|
544 |
|
545 |
|