mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-19 23:00:45 -07:00
Remove 'Active' badge for inactive PyTorch providers in ProviderSettings component
This commit is contained in:
@@ -221,7 +221,6 @@ export function ProviderSettings() {
|
|||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{currentProvider === 'pytorch-cuda' && <Badge variant="outline">Active</Badge>}
|
|
||||||
{!installedProviders.includes('pytorch-cuda') && (
|
{!installedProviders.includes('pytorch-cuda') && (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => handleDownload('pytorch-cuda')}
|
onClick={() => handleDownload('pytorch-cuda')}
|
||||||
@@ -274,7 +273,6 @@ export function ProviderSettings() {
|
|||||||
</Label>
|
</Label>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{currentProvider === 'pytorch-cpu' && <Badge variant="outline">Active</Badge>}
|
|
||||||
{!installedProviders.includes('pytorch-cpu') && (
|
{!installedProviders.includes('pytorch-cpu') && (
|
||||||
<Button
|
<Button
|
||||||
onClick={() => handleDownload('pytorch-cpu')}
|
onClick={() => handleDownload('pytorch-cpu')}
|
||||||
@@ -325,11 +323,6 @@ export function ProviderSettings() {
|
|||||||
Bundled with the app - optimized for M-series chips
|
Bundled with the app - optimized for M-series chips
|
||||||
</div>
|
</div>
|
||||||
</Label>
|
</Label>
|
||||||
{currentProvider === 'apple-mlx' && (
|
|
||||||
<Badge variant="outline" className="ml-2">
|
|
||||||
Active
|
|
||||||
</Badge>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user