Spaces:
Running
Running
Sigrid De los Santos
commited on
Commit
Β·
ff72975
1
Parent(s):
a751f1c
debugging for analysis tables
Browse files- app.py +1 -1
- src/main.py +8 -3
app.py
CHANGED
@@ -61,7 +61,7 @@ if submitted:
|
|
61 |
|
62 |
try:
|
63 |
# === Check API Keys ===
|
64 |
-
st.info("
|
65 |
try:
|
66 |
client = openai.OpenAI(api_key=openai_api_key)
|
67 |
client.models.list()
|
|
|
61 |
|
62 |
try:
|
63 |
# === Check API Keys ===
|
64 |
+
st.info("**Checking Credentials...**")
|
65 |
try:
|
66 |
client = openai.OpenAI(api_key=openai_api_key)
|
67 |
client.models.list()
|
src/main.py
CHANGED
@@ -37,11 +37,16 @@ def run_value_investing_analysis(csv_path, progress_callback=None):
|
|
37 |
timespan = row.get("timespan_days", 7)
|
38 |
if progress_callback:
|
39 |
progress_callback(f"π Processing topic: {topic} ({timespan} days)")
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
try:
|
42 |
news = fetch_deep_news(topic, timespan)
|
43 |
-
if progress_callback:
|
44 |
-
progress_callback(f"[DEBUG] fetch_deep_news returned {len(news) if news else 0} articles.")
|
45 |
except Exception as e:
|
46 |
if progress_callback:
|
47 |
progress_callback(f"[ERROR] fetch_deep_news failed: {e}")
|
|
|
37 |
timespan = row.get("timespan_days", 7)
|
38 |
if progress_callback:
|
39 |
progress_callback(f"π Processing topic: {topic} ({timespan} days)")
|
40 |
+
# try:
|
41 |
+
# news = fetch_deep_news(topic, timespan)
|
42 |
+
# if progress_callback:
|
43 |
+
# progress_callback(f"[DEBUG] fetch_deep_news returned {len(news) if news else 0} articles.")
|
44 |
+
# except Exception as e:
|
45 |
+
# if progress_callback:
|
46 |
+
# progress_callback(f"[ERROR] fetch_deep_news failed: {e}")
|
47 |
+
# continue
|
48 |
try:
|
49 |
news = fetch_deep_news(topic, timespan)
|
|
|
|
|
50 |
except Exception as e:
|
51 |
if progress_callback:
|
52 |
progress_callback(f"[ERROR] fetch_deep_news failed: {e}")
|