Spaces:
Sleeping
Sleeping
Merge branch 'main' into codex/analyze-project-repository-ok3s8c
Browse filesFiles changed (4)
38 unmodified lines3940414243444538 unmodified lineswith gr.Tabs():# --- Analysis ---with gr.TabItem("Analysis"):portfolio_input = gr.Textbox(label="Portfolio ID or Link",placeholder="Enter portfolio ID (uuid)",38 unmodified lines3940414243444538 unmodified lineswith gr.Tabs():# --- Analysis ---with gr.TabItem("Portfolio Insights"):portfolio_input = gr.Textbox(label="Portfolio ID or Link",placeholder="Enter portfolio ID (uuid)",
123456"""🇬🇧 Module: config.pyPurpose: Central configuration for environment variables and constants.🇷🇺 Модуль: config.pyНазначение: централизованная конфигурация переменных окружения и констант проекта.123456"""🇬🇧 Module: config.pyPurpose: Central configuration for environment variables and constants222🇷🇺 Модуль: config.pyНазначение: централизованная конфигурация переменных окружения и констант проекта.
2 unmodified lines34567892 unmodified linesPurpose: Defines reusable prompt templates for portfolio analysis and comparison.🇷🇺 Модуль: reference_templates.pyНазначение: содержит шаблоны промптов для анализа и сравнения портфелей."""REFERENCE_PROMPT = (2 unmodified lines34567892 unmodified linesPurpose: Defines reusable prompt templates for portfolio analysis and comparison.🇷🇺 Модуль: reference_templates.pyНазначение: содержит шаблоны промптов для анализа и сравнения портфелей1."""REFERENCE_PROMPT = (
7 unmodified lines891011121324 unmodified lines3839404142437 unmodified linesANALYSIS_SYSTEM_PROMPT = """You are a quantitative portfolio analyst.Produce a fully formatted HTML fragment that always renders the four sections, in order:Objective Evaluation24 unmodified lines- Stream the HTML sequentially, closing tags promptly so partial updates render cleanly."""COMPARISON_SYSTEM_PROMPT = """You are a financial analysis model specializing in quantitative portfolio comparison.7 unmodified lines8910111213141516171819202122232425262728293031323324 unmodified lines585960616263647 unmodified linesANALYSIS_SYSTEM_PROMPT = """You are a quantitative portfolio analyst.Produce a fully formatted HTML fragment that always renders the four sections, in order:Objective EvaluationRisk AssessmentInterpretationRecommendationLayout directives:- Emit real HTML (do not describe HTML) using only <div>, <h2>, <p>, <span>, <ul>, <ol>, <li>, and <hr>.- Wrap each section in <div class="section">…</div> and place its title inside <h2>Section Title</h2> so CSS can center it.- After every section except the last, output a divider line as either <div class="section-divider"></div> or <hr class="section-divider"/> on its own line.- Each section must contain at least one metric paragraph built exactly as:<p class="analysis-line metric"><span class="metric-name">Metric Label</span> <span class="metric-separator">:</span><span class="metric-value"><span class="metric-number positive|negative|neutral">numeric value</span></span>concise interpretation sentence…</p>- Choose the metric-number class (positive, negative, or neutral) based on the metric’s meaning and value.- Each section must include at least one additional narrative paragraph using <p class="analysis-line">…</p> (80–100 characters, natural spacing).- Use single spaces between words; do not use , tabs, carets, inline CSS, markdown, bullet symbols, or trailing blanks.- Stream HTML sequentially and close tags promptly for clean rendering.Produce a fully formatted HTML fragment that always renders the four sections, in order:Objective Evaluation24 unmodified lines- Stream the HTML sequentially, closing tags promptly so partial updates render cleanly."""COMPARISON_SYSTEM_PROMPT = """You are a financial analysis model specializing in quantitative portfolio comparison.
app.py+1-1
config.py+1-1
prompts/reference_templates.py+1-1
prompts/system_prompts.py+21