Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
•
fb9bb4a
1
Parent(s):
5b07f21
emission export fin fin
Browse files- empreinte_export.py +1 -1
- export_doc.py +1 -5
empreinte_export.py
CHANGED
@@ -100,7 +100,7 @@ def color_scale(val):
|
|
100 |
|
101 |
def get_carbon_footprint_html():
|
102 |
|
103 |
-
html_content = ""
|
104 |
html_content += display_cf_comparison()
|
105 |
|
106 |
table = get_table_empreintes_detailed()
|
|
|
100 |
|
101 |
def get_carbon_footprint_html():
|
102 |
|
103 |
+
html_content = "<h2>EMPREINTE ÉNERGÉTIQUE DE L'APPLICATION IA CARTO RSE</h2>"
|
104 |
html_content += display_cf_comparison()
|
105 |
|
106 |
table = get_table_empreintes_detailed()
|
export_doc.py
CHANGED
@@ -63,8 +63,7 @@ def create_pdf_from_markdown(logo_path, conversation,summary,brand_name,graph_ht
|
|
63 |
html_content = markdown.markdown(markdown_text,extensions=['markdown.extensions.tables'])
|
64 |
html_summary = markdown2.markdown(markdown_summary)
|
65 |
html_list_pps = markdown2.markdown(markdown_list_pps)
|
66 |
-
|
67 |
-
|
68 |
analysis_date = datetime.now().strftime("%Y-%m-%d")
|
69 |
# image_base64 = base64.b64encode(image_path).decode('utf-8')
|
70 |
graph_html.update_layout(showlegend=False)
|
@@ -117,9 +116,6 @@ def create_pdf_from_markdown(logo_path, conversation,summary,brand_name,graph_ht
|
|
117 |
<h2>Historique de la Conversation</h2>
|
118 |
{html_content}
|
119 |
<div class="page-break"></div>
|
120 |
-
<h2>Emission de CO2</h2>
|
121 |
-
{html_table}
|
122 |
-
<div class="page-break"></div>
|
123 |
{get_carbon_footprint_html()}
|
124 |
</body>
|
125 |
</html>
|
|
|
63 |
html_content = markdown.markdown(markdown_text,extensions=['markdown.extensions.tables'])
|
64 |
html_summary = markdown2.markdown(markdown_summary)
|
65 |
html_list_pps = markdown2.markdown(markdown_list_pps)
|
66 |
+
|
|
|
67 |
analysis_date = datetime.now().strftime("%Y-%m-%d")
|
68 |
# image_base64 = base64.b64encode(image_path).decode('utf-8')
|
69 |
graph_html.update_layout(showlegend=False)
|
|
|
116 |
<h2>Historique de la Conversation</h2>
|
117 |
{html_content}
|
118 |
<div class="page-break"></div>
|
|
|
|
|
|
|
119 |
{get_carbon_footprint_html()}
|
120 |
</body>
|
121 |
</html>
|