Miruzen commited on
Commit
13967e5
Β·
verified Β·
1 Parent(s): 6e06e81
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -74,9 +74,14 @@ def extract_scores(predictions):
74
  # ===============================
75
  @app.post("/analyze")
76
  def analyze(data: InputData):
 
 
 
 
77
  result = {}
78
  errors = []
79
 
 
80
  if data.title:
81
  try:
82
  finbert_out = call_hf_model(FINBERT_MODEL, data.title)
 
74
  # ===============================
75
  @app.post("/analyze")
76
  def analyze(data: InputData):
77
+ print("πŸš€ Incoming request:", data)
78
+ print("πŸ“‘ Using router endpoint:", HF_ROUTER_URL)
79
+ print("πŸ”‘ Using key starts with:", HF_API_KEY[:10])
80
+
81
  result = {}
82
  errors = []
83
 
84
+
85
  if data.title:
86
  try:
87
  finbert_out = call_hf_model(FINBERT_MODEL, data.title)