Spaces:
Sleeping
Sleeping
Beracles commited on
Commit ·
2e3cfde
1
Parent(s): d4a87fb
update url
Browse filesFiles changed (8)
21 unmodified lines2223242521 unmodified linesCOPY . .CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]21 unmodified lines2223242521 unmodified linesCOPY . .CMD ["uvicorn", "main:app", "--host", "localhost", "--port", "7860"]
6 unmodified lines78910111213146 unmodified lines<h1 style="text-align: center;">AI Patcher</h1></header><div style="text-align: center;"><a href="https://pgsoft-ai-patcher-interface.hf.space/watermelon/">Watermelon</a></div></body>6 unmodified lines789101112136 unmodified lines<h1 style="text-align: center;">AI Patcher</h1></header><div style="text-align: center;"><a href="http://localhost:7860/watermelon/">Watermelon</a></div></body>
12345// delete_all_of_sthvar ws = new WebSocket("ws://localhost:8000/watermelon/ws");ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data12345// delete_all_of_sthvar ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data
123456// helpconst url = "ws://pgsoft-ai-patcher-interface.hf.space/watermelon/ws"var ws = new WebSocket(url);ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data12345// helpvar ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data
9 unmodified lines1011121314151617189 unmodified lines<body><div style="display: flex;flex-direction: column;align-items: center;"><div style="display:flex;flex-direction: column;"><a href="https://pgsoft-ai-patcher-interface.hf.space/watermelon/help/index.html">help</a><a href="https://pgsoft-ai-patcher-interface.hf.space/watermelon/reset_game/index.html">reset_game</a><a href="https://pgsoft-ai-patcher-interface.hf.space/watermelon/set_number_of_sth/index.html">set_number_of_sth</a></div></div><script src="index.js"></script>9 unmodified lines1011121314151617189 unmodified lines<body><div style="display: flex;flex-direction: column;align-items: center;"><div style="display:flex;flex-direction: column;"><a href="http://localhost:7860/watermelon/help/index.html">help</a><a href="http://localhost:7860/watermelon/reset_game/index.html">reset_game</a><a href="http://localhost:7860/watermelon/set_number_of_sth/index.html">set_number_of_sth</a></div></div><script src="index.js"></script>
20 unmodified lines21222324252627282930313233343536373839404142434445464720 unmodified lines<pre id="messages"></pre></div></div><script>const url = "ws://0.0.0.0:7860/watermelon/ws"var ws = new WebSocket(url);ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data};function sendMessage(event) {var input = document.getElementById("command")var myobj = {url: "reset_game",data: {command: input.value}}ws.send(JSON.stringify(myobj))event.preventDefault()}</script></body></html>20 unmodified lines2122232425262720 unmodified lines<pre id="messages"></pre></div></div><script src="index.js"></script></body></html>
12345678910111213141516171819// reset_gamevar ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) { var messages = document.getElementById('messages') messages.innerText = event.data};
function sendMessage(event) { var input = document.getElementById("command") console.log("input: " + input.value) var myobj = { url: "reset_game", data: { command: input.value } } ws.send(JSON.stringify(myobj)) event.preventDefault()}123456// set_number_of_sthconst url = "ws://pgsoft-ai-patcher-interface.hf.space/watermelon/ws"var ws = new WebSocket(url);ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data12345// set_number_of_sthvar ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) {var messages = document.getElementById('messages')messages.innerText = event.data
Dockerfile+1-1
static/index.html+1-2
static/watermelon/delete_all_of_sth/index.js+1-1
static/watermelon/help/index.js+1-2
static/watermelon/index.html+3-3
static/watermelon/reset_game/index.html+1-21
static/watermelon/reset_game/index.jsAdded+19
static/watermelon/set_number_of_sth/index.js+1-2