Nexo-S commited on
Commit
1063ef6
·
verified ·
1 Parent(s): a0b1c59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -28,6 +28,16 @@ try:
28
  print("✅ Cerveaux satellites connectés.")
29
  except Exception as e:
30
  print(f"❌ Erreur imports : {e}")
 
 
 
 
 
 
 
 
 
 
31
 
32
  # --- CONFIG HUB & DB ---
33
  REPO_ID = "Nexo-S/AlphaV15-Quant-Engine"
 
28
  print("✅ Cerveaux satellites connectés.")
29
  except Exception as e:
30
  print(f"❌ Erreur imports : {e}")
31
+ # --- IMPORT DES SCRIPTS LOCAUX ---
32
+ try:
33
+ from sentiment_engine import get_crypto_sentiment
34
+ print("✅ Sentiment Engine connecté.")
35
+ except Exception as e:
36
+ print(f"⚠️ Erreur Sentiment Engine : {e}")
37
+ # FONCTION DE SECOURS si le fichier est manquant ou buggé
38
+ async def get_crypto_sentiment(symbol):
39
+ print(f"ℹ️ Sentiment par défaut (0.5) pour {symbol}")
40
+ return 0.5
41
 
42
  # --- CONFIG HUB & DB ---
43
  REPO_ID = "Nexo-S/AlphaV15-Quant-Engine"