This commit is contained in:
Saifeddine ALOUI 2024-03-27 01:11:25 +01:00
parent 908a544f91
commit 61f1cacdce
5 changed files with 8 additions and 7 deletions

@ -1 +1 @@
Subproject commit 17e4f99094f498c7e4bc20714003e2d9cae7e4e2
Subproject commit 3b28155bd044d60897edcd152e5ed732d2c7d4a9

File diff suppressed because one or more lines are too long

2
web/dist/index.html vendored
View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-3442c1ad.js"></script>
<script type="module" crossorigin src="/assets/index-5d0b9ea6.js"></script>
<link rel="stylesheet" href="/assets/index-8b7a6d49.css">
</head>
<body>

View File

@ -25,7 +25,7 @@
class="w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer">
<i data-feather="volume-2"></i>
</button>
<input type="file" ref="fileInput" @change="handleFileUpload" style="display: none;" accept=".wav, .mp3" />
<input type="file" ref="fileInput" @change="handleFileUpload" style="display: none;" accept=".wav" />
<button title="Upload a voice" @click="triggerFileUpload"><i data-feather="speaker"></i></button>
<button
type="button"
@ -592,10 +592,11 @@ export default {
this.uploadFile()
},
uploadFile() {
console.log("sending file")
const formData = new FormData();
formData.append('file', this.file);
axios.post('http://localhost:8000/upload_voice/', formData, {
axios.post('/upload_voice/', formData, {
headers: {
'Content-Type': 'multipart/form-data',
},

@ -1 +1 @@
Subproject commit 24b337a71ca3e7956662c8635d60c8b7ea04f714
Subproject commit ec781d9f40bf3e302b6367ad9d831a79ae6280e5