Spaces:
Sleeping
Sleeping
Debug
Browse files
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)
|