Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,8 @@ def extract_repo_content(url):
|
|
78 |
|
79 |
return extracted_content
|
80 |
|
81 |
-
def format_output(extracted_content
|
82 |
-
formatted_output =
|
83 |
for file_data in extracted_content:
|
84 |
if isinstance(file_data, dict) and 'header' in file_data:
|
85 |
formatted_output += f"### File: {file_data['header']['name']}\n"
|
@@ -93,7 +93,7 @@ def format_output(extracted_content, url):
|
|
93 |
|
94 |
def extract_and_display(url):
|
95 |
extracted_content = extract_repo_content(url)
|
96 |
-
formatted_output = format_output(extracted_content
|
97 |
return formatted_output
|
98 |
|
99 |
app = gr.Blocks()
|
|
|
78 |
|
79 |
return extracted_content
|
80 |
|
81 |
+
def format_output(extracted_content):
|
82 |
+
formatted_output = ""
|
83 |
for file_data in extracted_content:
|
84 |
if isinstance(file_data, dict) and 'header' in file_data:
|
85 |
formatted_output += f"### File: {file_data['header']['name']}\n"
|
|
|
93 |
|
94 |
def extract_and_display(url):
|
95 |
extracted_content = extract_repo_content(url)
|
96 |
+
formatted_output = format_output(extracted_content)
|
97 |
return formatted_output
|
98 |
|
99 |
app = gr.Blocks()
|