Spaces:
Sleeping
Sleeping
Beracles commited on
Commit ·
2e3cfde
1
Parent(s): d4a87fb
update url
Browse filesFiles changed (8)
21 unmodified lines222324252521 unmodified lines
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]CMD ["uvicorn", "main:app", "--host", "localhost", "--port", "7860"]6 unmodified lines7891011101112136 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>
<a href="http://localhost:7860/watermelon/">Watermelon</a> </div></body>
122345// delete_all_of_sthvar ws = new WebSocket("ws://localhost:8000/watermelon/ws");var ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) { var messages = document.getElementById('messages') messages.innerText = event.data1232345// helpconst url = "ws://pgsoft-ai-patcher-interface.hf.space/watermelon/ws"var ws = new WebSocket(url);var ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) { var messages = document.getElementById('messages') messages.innerText = event.data9 unmodified lines1011121314151314151617189 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> <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 lines2122232425262728293031323334353637383940414243442425262720 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> <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()}1232345// set_number_of_sthconst url = "ws://pgsoft-ai-patcher-interface.hf.space/watermelon/ws"var ws = new WebSocket(url);var ws = new WebSocket("ws://localhost:7860/watermelon/ws");ws.onmessage = function (event) { var messages = document.getElementById('messages') messages.innerText = event.dataDockerfile+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