You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(E:\Phishr-API-main\venv) PS E:\Phishr-API-main> python app.py
Loading the model...
E:\Phishr-API-main\venv\lib\site-packages\sklearn\base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LabelEncoder from version 1.2.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to: https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
INFO: Started server process [25192]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found
I am getting this error when i start hosting. anyone help me in this.
def get_similar_urls(data: DomainData):
# convert to dictionary
data = data.dict()
# the key has same name as you put in class
url = data["url"]
max_num = data["max_num"]
if (max_num <= 0):
max_num = 20
# result
output = getTypoSquattedDomains(url, max_num)
print("API OUTPUT : ", output)
output = {"output": output}
# Convert the output dictionary to JSON-compatible format
output_dict = json.loads(json.dumps(output, default=str))
return output_dict
and in vscode, this line data = data.dict() is not working. says depricated
The text was updated successfully, but these errors were encountered:
(E:\Phishr-API-main\venv) PS E:\Phishr-API-main> python app.py
Loading the model...
E:\Phishr-API-main\venv\lib\site-packages\sklearn\base.py:376: InconsistentVersionWarning: Trying to unpickle estimator LabelEncoder from version 1.2.2 when using version 1.4.1.post1. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
INFO: Started server process [25192]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found
INFO: 127.0.0.1:52845 - "GET / HTTP/1.1" 404 Not Found
I am getting this error when i start hosting. anyone help me in this.
def get_similar_urls(data: DomainData):
and in vscode, this line data = data.dict() is not working. says depricated
The text was updated successfully, but these errors were encountered: