Skip to content
Snippets Groups Projects
Commit 02fd643b authored by Swetha Lakshmana Murthy's avatar Swetha Lakshmana Murthy
Browse files

Added the UML image to the README.md

parent 0757f92f
No related branches found
No related tags found
No related merge requests found
graphene_llm_readme_gen/ReadmeGenModule/static/uml_name.png

23.9 KiB

...@@ -253,6 +253,7 @@ ...@@ -253,6 +253,7 @@
<h2>Generated README content</h2> <h2>Generated README content</h2>
<form action="/readme" method="POST"> <form action="/readme" method="POST">
<pre id="generated-readme" style="white-space: pre-wrap;">{{ readme_content }}</pre> <pre id="generated-readme" style="white-space: pre-wrap;">{{ readme_content }}</pre>
<img src="{{ url_for('static', filename='uml_name.png') }}" alt="UML Diagram" width="1500" height="200">
<input type="submit" value="Show README"> <input type="submit" value="Show README">
</form> </form>
</div> </div>
......
...@@ -86,6 +86,8 @@ def run_tool(tool_name, directory_path, llm, query): ...@@ -86,6 +86,8 @@ def run_tool(tool_name, directory_path, llm, query):
} }
readme_path = os.path.join(directory_path, 'README.md') readme_path = os.path.join(directory_path, 'README.md')
write_to_readme(readme_path, readme_content) write_to_readme(readme_path, readme_content)
uml_name = 'uml_name.png'
shutil.copy(img_path + '.png', os.path.join('static', uml_name))
else: else:
print('UML image already exists. Skipping rendering.') print('UML image already exists. Skipping rendering.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment