diff --git a/.gitignore b/.gitignore index a6d9d19..79f8d5a 100644 --- a/.gitignore +++ b/.gitignore @@ -123,6 +123,7 @@ celerybeat.pid # Environments .env env/ +.venv/ venv/ ENV/ env.bak/ diff --git a/client/p.py b/client/p.py index 539a816..27daf10 100755 --- a/client/p.py +++ b/client/p.py @@ -1,4 +1,4 @@ -#!/Users/jonathandunn/myAugmented/.venv/bin/python +#!/usr/bin/env python3 import pyperclip diff --git a/server/fabric_api_server.py b/server/fabric_api_server.py index 9bf34ac..b4a95b4 100644 --- a/server/fabric_api_server.py +++ b/server/fabric_api_server.py @@ -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) diff --git a/server/fabric_web_interface/fabric_web_server.py b/server/fabric_web_interface/fabric_web_server.py index ef74287..dad4a96 100644 --- a/server/fabric_web_interface/fabric_web_server.py +++ b/server/fabric_web_interface/fabric_web_server.py @@ -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)