Update .gitignore and server configurations

This commit is contained in:
Wayne 2024-02-04 16:12:41 +00:00
parent f52f2ee488
commit 0be94ee1b5
4 changed files with 6 additions and 4 deletions

1
.gitignore vendored
View File

@ -123,6 +123,7 @@ celerybeat.pid
# Environments
.env
env/
.venv/
venv/
ENV/
env.bak/

View File

@ -1,4 +1,4 @@
#!/Users/jonathandunn/myAugmented/.venv/bin/python
#!/usr/bin/env python3
import pyperclip

View File

@ -136,4 +136,4 @@ def extwis():
# Run the application
if __name__ == "__main__":
app.run(host="1.1.1.1", port=13337, debug=True)
app.run(host="127.0.0.1", port=13337, debug=True)

View File

@ -2,6 +2,7 @@ from flask import Flask, render_template, request, redirect, url_for, flash, ses
import requests
import json
from flask import send_from_directory
import os
##################################################
##################################################
@ -15,7 +16,7 @@ from flask import send_from_directory
def send_request(prompt, endpoint):
base_url = "http://hostorip.tld:13337"
base_url = "http://127.0.0.1:13337"
url = f"{base_url}{endpoint}"
headers = {
"Content-Type": "application/json",
@ -54,4 +55,4 @@ def index():
if __name__ == "__main__":
app.run(host="172.30.0.176", port=13338, debug=True)
app.run(host="127.0.0.1", port=13338, debug=True)