Spaces:
Running
Running
Commit
·
c827eef
1
Parent(s):
67eeb3a
Update src/FreeGPT4_Server.py
Browse files- src/FreeGPT4_Server.py +5 -2
src/FreeGPT4_Server.py
CHANGED
@@ -113,8 +113,11 @@ if __name__ == "__main__":
|
|
113 |
else:
|
114 |
print("[!] Warning: Cookie file not found, proceeding without cookies (no account mode).")
|
115 |
#Creates dummy cookie file if not found
|
116 |
-
|
|
|
117 |
fp.close()
|
|
|
|
|
118 |
|
119 |
#Starts the server, change the port if needed
|
120 |
-
app.run("0.0.0.0", port=
|
|
|
113 |
else:
|
114 |
print("[!] Warning: Cookie file not found, proceeding without cookies (no account mode).")
|
115 |
#Creates dummy cookie file if not found
|
116 |
+
try:
|
117 |
+
with open("../cookies.json", 'w') as fp:
|
118 |
fp.close()
|
119 |
+
except:
|
120 |
+
pass
|
121 |
|
122 |
#Starts the server, change the port if needed
|
123 |
+
app.run("0.0.0.0", port=7860, debug=False)
|