Spaces:
Paused
Paused
Update app.py via AI Editor
Browse files
app.py
CHANGED
@@ -464,14 +464,8 @@ def update_uploaded_doc_name(contents, filename, id_dict):
|
|
464 |
return "", None, "loaded"
|
465 |
|
466 |
def markdown_table_preview(md_text):
|
467 |
-
#
|
468 |
-
|
469 |
-
soup = BeautifulSoup(html_out, "html.parser")
|
470 |
-
tables = soup.find_all('table')
|
471 |
-
if tables:
|
472 |
-
return html.Div([html.Table(table, style={'width': '100%', 'overflowX': 'auto'}) for table in tables])
|
473 |
-
else:
|
474 |
-
return html.Div(dcc.Markdown(md_text, dangerously_allow_html=True, style={'whiteSpace': 'pre-wrap', 'fontFamily': 'monospace'}))
|
475 |
|
476 |
def markdown_narrative_preview(md_text):
|
477 |
return html.Div(dcc.Markdown(md_text, dangerously_allow_html=True, style={'whiteSpace': 'pre-wrap', 'fontFamily': 'sans-serif'}))
|
@@ -564,7 +558,7 @@ Instructions:
|
|
564 |
2. Use proper formatting and structure.
|
565 |
3. Include all necessary sections and details.
|
566 |
4. Start the output immediately with the document content.
|
567 |
-
5. IMPORTANT: If the document type is Pink, Red, Gold and not Pink Review, Red Review, Gold Review, or spreadsheet, loe or virtual board then your goal is to be compliant and compelling based on the requrements, write in paragraph in active voice as MicroHealth, limit bullets, answer the requirement with what MicroHealth will do to satisfy the requirement, the technical approach with innovation for efficiency, productivity, quality and measurable outcomes, the industry standard that methodology is based on if applicable, detail the workflow or steps to accomplish the requirement with labor categories that will do those tasks in that workflow, reference reputable research like gartner, forrester, IDC, Deloitte, Accenture etc with measures of success and substantiation of MicroHealth's approach. Never use soft words like maybe, could be, should, possible be definitive in your language and confident.
|
568 |
6. you must also take into account section L&M of the document which is the evaluation criteria to be sure we address them.
|
569 |
Now, generate the {document_type}:
|
570 |
"""
|
|
|
464 |
return "", None, "loaded"
|
465 |
|
466 |
def markdown_table_preview(md_text):
|
467 |
+
# Always use dcc.Markdown to render markdown tables, which supports tables natively
|
468 |
+
return dcc.Markdown(md_text, dangerously_allow_html=True, style={'whiteSpace': 'pre-wrap', 'fontFamily': 'monospace', 'overflowX': 'auto'})
|
|
|
|
|
|
|
|
|
|
|
|
|
469 |
|
470 |
def markdown_narrative_preview(md_text):
|
471 |
return html.Div(dcc.Markdown(md_text, dangerously_allow_html=True, style={'whiteSpace': 'pre-wrap', 'fontFamily': 'sans-serif'}))
|
|
|
558 |
2. Use proper formatting and structure.
|
559 |
3. Include all necessary sections and details.
|
560 |
4. Start the output immediately with the document content.
|
561 |
+
5. IMPORTANT: If the document type is Pink, Red, Gold and not Pink Review, Red Review, Gold Review, or spreadsheet, loe or virtual board then your goal is to be compliant and compelling based on the requrements, write in paragraph, wikipedia style however in active voice (not just say ”will” or ”provides” but definitive action verb) as MicroHealth, limit bullets, answer the requirement with what MicroHealth will do to satisfy the requirement, the technical approach with innovation for efficiency, productivity, quality and measurable outcomes, the industry standard that methodology is based on if applicable, detail the workflow or steps to accomplish the requirement with labor categories that will do those tasks in that workflow, reference reputable research like gartner, forrester, IDC, Deloitte, Accenture etc with measures of success and substantiation of MicroHealth's approach. Never use soft words like maybe, could be, should, possible be definitive in your language and confident.
|
562 |
6. you must also take into account section L&M of the document which is the evaluation criteria to be sure we address them.
|
563 |
Now, generate the {document_type}:
|
564 |
"""
|