Spaces:
Sleeping
Sleeping
Aiswarya Sankar
commited on
Commit
·
b3d81c3
1
Parent(s):
45ae5b1
Remove naming
Browse files
app.py
CHANGED
@@ -292,7 +292,7 @@ def generateFolderNamesForRepo(repo):
|
|
292 |
input data and generate the responses that are displayed in the UI.
|
293 |
"""
|
294 |
pathName = git_clone(repo)
|
295 |
-
root_dir = './' + pathName
|
296 |
|
297 |
files, dirs, docs = [], [], []
|
298 |
for dirpath, dirnames, filenames in os.walk(root_dir):
|
@@ -543,45 +543,45 @@ with gr.Blocks() as demo:
|
|
543 |
clear.click(lambda: None, None, chatbot, queue=False)
|
544 |
|
545 |
|
546 |
-
with gr.Tab("AI Code Documentation"):
|
547 |
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
|
555 |
-
|
556 |
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
|
564 |
-
|
565 |
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
|
586 |
|
587 |
with gr.Tab("Custom Model Finetuning"):
|
|
|
292 |
input data and generate the responses that are displayed in the UI.
|
293 |
"""
|
294 |
pathName = git_clone(repo)
|
295 |
+
root_dir = './' + pathName
|
296 |
|
297 |
files, dirs, docs = [], [], []
|
298 |
for dirpath, dirnames, filenames in os.walk(root_dir):
|
|
|
543 |
clear.click(lambda: None, None, chatbot, queue=False)
|
544 |
|
545 |
|
546 |
+
# with gr.Tab("AI Code Documentation"):
|
547 |
|
548 |
+
# # global repoName
|
549 |
+
# # First parse through the folder structure and store that as a list of clickable buttons
|
550 |
+
# gr.Markdown("""
|
551 |
+
# ## AI Generated Code Documentation
|
552 |
+
# Code documentation comes in 3 flavors - internal engineering, external API documentation and product documentation. Each offers different layers of abstraction over the code base.
|
553 |
+
# """)
|
554 |
|
555 |
+
# # docs = generateDocumentationPerFolder("overview", repo_name)
|
556 |
|
557 |
+
# # For now let's just display all of the docs in one big file
|
558 |
+
# allDocs = ""
|
559 |
+
# dirNames = generateFolderNamesForRepo(repoName[:-4])
|
560 |
+
# for dir in dirNames:
|
561 |
+
# if dir[0] != ".":
|
562 |
+
# allDocs += generateDocumentationPerFolder(dir, repoName[:-4]) + '\n\n'
|
563 |
|
564 |
+
# gr.Markdown(allDocs)
|
565 |
|
566 |
+
# def button_click_callback(markdown):
|
567 |
+
# docs = generateDocumentationPerFolder("overview", repoName[:-4])
|
568 |
+
# markdown.update(docs)
|
569 |
|
570 |
+
# markdown = gr.Markdown()
|
571 |
+
# # Generate the left column buttons and their names and wrap each one in a function
|
572 |
+
# with gr.Row():
|
573 |
+
# with gr.Column(scale=.5, min_width=300):
|
574 |
+
# dirNames = generateFolderNamesForRepo(repoName[:-4])
|
575 |
+
# buttons = [gr.Button(folder_name) for folder_name in dirNames]
|
576 |
+
# for btn, folder_name in zip(buttons, dirNames):
|
577 |
+
# btn.click(button_click_callback, [markdown], [markdown] )
|
578 |
+
|
579 |
+
|
580 |
+
# # Generate the overall documentation for the main bubble at the same time
|
581 |
+
# with gr.Column(scale=2, min_width=300):
|
582 |
+
# docs = generateDocumentationPerFolder("overview", repoName[:-4])
|
583 |
+
# markdown.update(docs)
|
584 |
+
# # markdown.render()
|
585 |
|
586 |
|
587 |
with gr.Tab("Custom Model Finetuning"):
|