forked from swee/MeowNex
Update sweebot.py
This commit is contained in:
parent
0e7fba7f31
commit
c42fb303e1
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ def config_docs():
|
||||||
def ai_response_truncate(uuidd):
|
def ai_response_truncate(uuidd):
|
||||||
if uuidd in responses_ai:
|
if uuidd in responses_ai:
|
||||||
res = responses_ai[uuidd]
|
res = responses_ai[uuidd]
|
||||||
return f'<title>AI response {uuidd}</title>\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<link rel="stylesheet" href="https://swee.codes/style.css" type="text/css">\n<body><center><h1>AI response {uuidd}</h1><br><br></center><div class=code width="100%" style="word-wrap: break-word;white-space: pre;text-align: left;">' + res
|
return f'<title>AI response {uuidd}</title>\n<meta name="viewport" content="width=device-width, initial-scale=1.0">\n<link rel="stylesheet" href="https://swee.codes/style.css" type="text/css">\n<body><center><h1>AI response {uuidd}</h1><br><br><div class=code width="100%" style="word-wrap: break-word;white-space: pre;text-align: left;">' + res
|
||||||
else:
|
else:
|
||||||
abrt(404)
|
abrt(404)
|
||||||
threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()
|
threading.Thread(target=app.run, daemon=True, kwargs={"port": 2005}).start()
|
||||||
|
|
Loading…
Reference in a new issue