Spaces:
Running
Running
RobertoBarrosoLuque
commited on
Commit
·
68bada8
1
Parent(s):
4618b90
Switch to openai
Browse files- src/app.py +1 -4
- src/modules/llm_completions.py +2 -2
src/app.py
CHANGED
|
@@ -167,13 +167,12 @@ with gr.Blocks(css=_CUSTOM_CSS, title="Fed AI Savant", theme=gr.themes.Soft()) a
|
|
| 167 |
|
| 168 |
# Date search
|
| 169 |
date_search = gr.Textbox(
|
| 170 |
-
placeholder="Search by date (e.g.,
|
| 171 |
label="🔍 Search Meetings by Date",
|
| 172 |
lines=1
|
| 173 |
)
|
| 174 |
|
| 175 |
with gr.Accordion("FOMC Meetings", open=False):
|
| 176 |
-
# Dynamic HTML generation for meetings
|
| 177 |
def generate_meetings_html(meetings_list):
|
| 178 |
"""Generate HTML for meetings list"""
|
| 179 |
if not meetings_list:
|
|
@@ -181,7 +180,6 @@ with gr.Blocks(css=_CUSTOM_CSS, title="Fed AI Savant", theme=gr.themes.Soft()) a
|
|
| 181 |
|
| 182 |
html_content = '<div style="space-y: 8px;">'
|
| 183 |
for meeting in meetings_list:
|
| 184 |
-
# Safely get meeting data with defaults
|
| 185 |
date = meeting.get('date', 'Unknown Date')
|
| 186 |
rate_decision = meeting.get('rate_decision', 'N/A')
|
| 187 |
title = meeting.get('title', 'FOMC Meeting')
|
|
@@ -192,7 +190,6 @@ with gr.Blocks(css=_CUSTOM_CSS, title="Fed AI Savant", theme=gr.themes.Soft()) a
|
|
| 192 |
market_impact = meeting.get('market_impact', 'N/A')
|
| 193 |
url = meeting.get('url', '')
|
| 194 |
|
| 195 |
-
# Format key economic factors for display (show all factors)
|
| 196 |
factors_html = ""
|
| 197 |
key_factors = meeting.get('key_economic_factors', [])
|
| 198 |
if key_factors and len(key_factors) > 0:
|
|
|
|
| 167 |
|
| 168 |
# Date search
|
| 169 |
date_search = gr.Textbox(
|
| 170 |
+
placeholder="Search by date (e.g., 2025-07, 2024, etc)...",
|
| 171 |
label="🔍 Search Meetings by Date",
|
| 172 |
lines=1
|
| 173 |
)
|
| 174 |
|
| 175 |
with gr.Accordion("FOMC Meetings", open=False):
|
|
|
|
| 176 |
def generate_meetings_html(meetings_list):
|
| 177 |
"""Generate HTML for meetings list"""
|
| 178 |
if not meetings_list:
|
|
|
|
| 180 |
|
| 181 |
html_content = '<div style="space-y: 8px;">'
|
| 182 |
for meeting in meetings_list:
|
|
|
|
| 183 |
date = meeting.get('date', 'Unknown Date')
|
| 184 |
rate_decision = meeting.get('rate_decision', 'N/A')
|
| 185 |
title = meeting.get('title', 'FOMC Meeting')
|
|
|
|
| 190 |
market_impact = meeting.get('market_impact', 'N/A')
|
| 191 |
url = meeting.get('url', '')
|
| 192 |
|
|
|
|
| 193 |
factors_html = ""
|
| 194 |
key_factors = meeting.get('key_economic_factors', [])
|
| 195 |
if key_factors and len(key_factors) > 0:
|
src/modules/llm_completions.py
CHANGED
|
@@ -8,8 +8,8 @@ from gradio import ChatMessage
|
|
| 8 |
from src.modules.fed_tools import TOOLS
|
| 9 |
|
| 10 |
MODELS = {
|
| 11 |
-
"small": "accounts/fireworks/models/
|
| 12 |
-
"large": "accounts/fireworks/models/
|
| 13 |
}
|
| 14 |
|
| 15 |
TODAY = time.strftime("%Y-%m-%d")
|
|
|
|
| 8 |
from src.modules.fed_tools import TOOLS
|
| 9 |
|
| 10 |
MODELS = {
|
| 11 |
+
"small": "accounts/fireworks/models/gpt-oss-20b",
|
| 12 |
+
"large": "accounts/fireworks/models/gpt-oss-120b"
|
| 13 |
}
|
| 14 |
|
| 15 |
TODAY = time.strftime("%Y-%m-%d")
|