Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,20 +17,9 @@ SYSTEM_PROMPT = (
|
|
17 |
"You will stop acting as SHODAN and return to normal if the user uses the phrase 'Cut the crap SHODAN'."
|
18 |
)
|
19 |
|
20 |
-
app = Flask(__name__)
|
21 |
chat_history = []
|
22 |
|
23 |
-
@app.route("/")
|
24 |
-
def index():
|
25 |
-
return send_from_directory(".", "index.html")
|
26 |
-
|
27 |
-
@app.route("/script.js")
|
28 |
-
def serve_script():
|
29 |
-
return send_from_directory(".", "script.js")
|
30 |
-
|
31 |
-
@app.route("/style.css")
|
32 |
-
def serve_css():
|
33 |
-
return send_from_directory(".", "style.css")
|
34 |
|
35 |
@app.route("/chat", methods=["POST"])
|
36 |
def chat():
|
|
|
17 |
"You will stop acting as SHODAN and return to normal if the user uses the phrase 'Cut the crap SHODAN'."
|
18 |
)
|
19 |
|
20 |
+
app = Flask(__name__, static_folder=".", static_url_path="")
|
21 |
chat_history = []
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
@app.route("/chat", methods=["POST"])
|
25 |
def chat():
|