dwb2023 commited on
Commit
c6adee1
1 Parent(s): ecf5c57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -78,8 +78,8 @@ def extract_repo_content(url):
78
 
79
  return extracted_content
80
 
81
- def format_output(extracted_content, url):
82
- formatted_output = f"# Repository URL: {url}\n\n"
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, url)
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()