mirror of
https://github.com/ggerganov/whisper.cpp
synced 2026-03-06 15:09:16 +01:00
server : fix hardcoded /inference path in default HTML page (#3639)
Closes #3596
This commit is contained in:
parent
193f7cdaaf
commit
eb27fa2252
@ -748,9 +748,9 @@ int main(int argc, char ** argv) {
|
||||
<body>
|
||||
<h1>Whisper.cpp Server</h1>
|
||||
|
||||
<h2>/inference</h2>
|
||||
<h2>)" + sparams.request_path + sparams.inference_path + R"(</h2>
|
||||
<pre>
|
||||
curl 127.0.0.1:)" + std::to_string(sparams.port) + R"(/inference \
|
||||
curl 127.0.0.1:)" + std::to_string(sparams.port) + sparams.request_path + sparams.inference_path + R"( \
|
||||
-H "Content-Type: multipart/form-data" \
|
||||
-F file="@<file-path>" \
|
||||
-F temperature="0.0" \
|
||||
@ -767,7 +767,7 @@ int main(int argc, char ** argv) {
|
||||
|
||||
<div>
|
||||
<h2>Try it out</h2>
|
||||
<form action="/inference" method="POST" enctype="multipart/form-data">
|
||||
<form action=")" + sparams.request_path + sparams.inference_path + R"(" method="POST" enctype="multipart/form-data">
|
||||
<label for="file">Choose an audio file:</label>
|
||||
<input type="file" id="file" name="file" accept="audio/*" required><br>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user