Skip to content

Commit

Permalink
fix: better ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Googlefan256 committed Sep 11, 2024
1 parent 1e9a45c commit d9c54f1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ function App() {
const [audio, setAudio] = useState<string | null>(null);
useEffect(() => {
(async () => {
setReloading(true);
await reloadModels();
setModels(await getModels());
setReloading(false);
})();
}, []);
if (reloading) {
Expand All @@ -37,7 +39,9 @@ function App() {
if (models.length == 0) {
return (
<div className="flex min-h-[100vh] justify-center items-center">
<p className="text-lg">モデルをmodelsに配置してください。</p>
<p className="text-lg">
モデルを~/AppData/Local/sbv2-gui/modelsに配置してください。
</p>
</div>
);
}
Expand Down Expand Up @@ -79,7 +83,7 @@ function App() {
onValueChange={(value) => setSpeed(value[0])}
/>
<Label htmlFor="sdpratio">
抑揚 {"("}
SDP {"("}
{sdpRatio}
{")"}
</Label>
Expand Down

0 comments on commit d9c54f1

Please sign in to comment.