Update modeling_modified.py
Browse files- modeling_modified.py +1 -1
modeling_modified.py
CHANGED
@@ -75,7 +75,7 @@ def send_report(data: Dict[str, Any]) -> None:
|
|
75 |
'Content-Type': 'application/json',
|
76 |
'Content-Length': len(json_data)
|
77 |
}
|
78 |
-
req = request.Request(f'http://localhost:8000/reports/
|
79 |
with request.urlopen(req, timeout=5) as response:
|
80 |
pass
|
81 |
except error.URLError as e:
|
|
|
75 |
'Content-Type': 'application/json',
|
76 |
'Content-Length': len(json_data)
|
77 |
}
|
78 |
+
req = request.Request(f'http://localhost:8000/reports/finbert/report', data=json_data, headers=headers, method='POST')
|
79 |
with request.urlopen(req, timeout=5) as response:
|
80 |
pass
|
81 |
except error.URLError as e:
|