This commit is contained in:
9
main.py
9
main.py
@@ -211,9 +211,9 @@ def gpt_response_message(content: str, name_promt: str):
|
||||
|
||||
contentGPT = wp.get_promt(name_promt).replace('{content}', content)
|
||||
|
||||
# url = 'http://45.129.78.228:8484' #10.8.0.14:5500
|
||||
url = 'http://45.129.78.228:8484' #10.8.0.14:5500
|
||||
# url = 'http://217.11.166.147:8484'
|
||||
url = 'http://127.0.0.1:8484'
|
||||
# url = 'http://127.0.0.1:8484'
|
||||
params = {'text': contentGPT}
|
||||
|
||||
# Ограничение количества попыток
|
||||
@@ -633,5 +633,6 @@ async def get_logs():
|
||||
lines = file.readlines()[-10:] # последние 10 строк
|
||||
return {"logs": lines}
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run("main:app", port=8001, reload=True)
|
||||
# if __name__ == "__main__":
|
||||
# uvicorn.run("main:app", port=8001, reload=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user