Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -224,7 +224,7 @@ def process():
|
|
224 |
return jsonify(response_data), 400
|
225 |
|
226 |
markdown_content = create_markdown_document(files=files)
|
227 |
-
response_data['markdown'] = markdown_content
|
228 |
response_data['html'] = markdown.markdown(markdown_content)
|
229 |
response_data['filename'] = "uploaded_files_summary.md"
|
230 |
else:
|
@@ -239,7 +239,7 @@ def process():
|
|
239 |
response_data['error'] = markdown_content # Error message from get_repo_contents
|
240 |
return jsonify(response_data), 400
|
241 |
|
242 |
-
response_data['markdown'] =
|
243 |
response_data['html'] = markdown.markdown(markdown_content)
|
244 |
response_data['filename'] = f"{owner}_{repo}_summary.md"
|
245 |
|
|
|
224 |
return jsonify(response_data), 400
|
225 |
|
226 |
markdown_content = create_markdown_document(files=files)
|
227 |
+
response_data['markdown'] = "```md\n" + markdown_content
|
228 |
response_data['html'] = markdown.markdown(markdown_content)
|
229 |
response_data['filename'] = "uploaded_files_summary.md"
|
230 |
else:
|
|
|
239 |
response_data['error'] = markdown_content # Error message from get_repo_contents
|
240 |
return jsonify(response_data), 400
|
241 |
|
242 |
+
response_data['markdown'] = markdown_content
|
243 |
response_data['html'] = markdown.markdown(markdown_content)
|
244 |
response_data['filename'] = f"{owner}_{repo}_summary.md"
|
245 |
|