Spaces:
Sleeping
Sleeping
Aiswarya Sankar
commited on
Commit
·
88dcad4
1
Parent(s):
f609dd9
update file
Browse files
app.py
CHANGED
@@ -196,13 +196,6 @@ def index_repo(textbox: str, dropdown: str) -> Response:
|
|
196 |
stdout="",
|
197 |
)
|
198 |
|
199 |
-
# repo = "/".join(repo[:-4].split("/")[-2:])
|
200 |
-
# tickets = fetchGithubIssues()
|
201 |
-
# git_tickets.value = tickets
|
202 |
-
|
203 |
-
# print("TICKET CREATION: " + str(repo))
|
204 |
-
# print(git_tickets.value)
|
205 |
-
|
206 |
return {
|
207 |
success_response: "SUCCESS",
|
208 |
launch_product: gr.update(visible=True)
|
@@ -231,7 +224,6 @@ def answer_questions(question: str, github: str, **kwargs) -> Response:
|
|
231 |
retriever.search_kwargs['k'] = 20
|
232 |
|
233 |
q = SimpleQueue()
|
234 |
-
|
235 |
model = ChatOpenAI(
|
236 |
model_name='gpt-3.5-turbo-16k',
|
237 |
temperature=0.0,
|
@@ -245,7 +237,6 @@ def answer_questions(question: str, github: str, **kwargs) -> Response:
|
|
245 |
chat_history = []
|
246 |
|
247 |
except Exception as e:
|
248 |
-
|
249 |
print("Exception: " + str(e))
|
250 |
return Response(
|
251 |
result="",
|
@@ -641,7 +632,6 @@ with gr.Blocks() as demo:
|
|
641 |
|
642 |
|
643 |
ingest_btn.click(fn=index_repo, inputs=[repoTextBox, ingestedRepos], outputs=[success_response, launch_product], api_name="index_repo").then(fn=fetchGithubIssues)
|
644 |
-
# ingest_btn.click(fn=)
|
645 |
|
646 |
|
647 |
|
|
|
196 |
stdout="",
|
197 |
)
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
return {
|
200 |
success_response: "SUCCESS",
|
201 |
launch_product: gr.update(visible=True)
|
|
|
224 |
retriever.search_kwargs['k'] = 20
|
225 |
|
226 |
q = SimpleQueue()
|
|
|
227 |
model = ChatOpenAI(
|
228 |
model_name='gpt-3.5-turbo-16k',
|
229 |
temperature=0.0,
|
|
|
237 |
chat_history = []
|
238 |
|
239 |
except Exception as e:
|
|
|
240 |
print("Exception: " + str(e))
|
241 |
return Response(
|
242 |
result="",
|
|
|
632 |
|
633 |
|
634 |
ingest_btn.click(fn=index_repo, inputs=[repoTextBox, ingestedRepos], outputs=[success_response, launch_product], api_name="index_repo").then(fn=fetchGithubIssues)
|
|
|
635 |
|
636 |
|
637 |
|