Update demo.py
Browse files
demo.py
CHANGED
@@ -8,6 +8,13 @@ import gradio as gr
|
|
8 |
|
9 |
os.system("python tools/download_models.py") # -> dummy extra
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
# gr.themes.builder()
|
12 |
from gradio.themes.base import Base
|
13 |
from gradio.themes.utils import colors, fonts, sizes
|
@@ -436,12 +443,10 @@ with gr.Blocks(title="RVC V2",theme=theme) as app:
|
|
436 |
outputs=[model_browser],
|
437 |
fn=lambda model: download_from_url(model_library.models[model],model),
|
438 |
)
|
439 |
-
if
|
440 |
with gr.TabItem("read this"):
|
441 |
gr.Markdown(f"This Spaces Using CPU dude\n may inference take long time\n")
|
442 |
-
|
443 |
-
pass
|
444 |
-
|
445 |
with gr.TabItem("Train"):
|
446 |
with gr.Row():
|
447 |
with gr.Column():
|
|
|
8 |
|
9 |
os.system("python tools/download_models.py") # -> dummy extra
|
10 |
|
11 |
+
if warning == 'True':
|
12 |
+
warning = True
|
13 |
+
elif warning == 'False':
|
14 |
+
warning = False
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
# gr.themes.builder()
|
19 |
from gradio.themes.base import Base
|
20 |
from gradio.themes.utils import colors, fonts, sizes
|
|
|
443 |
outputs=[model_browser],
|
444 |
fn=lambda model: download_from_url(model_library.models[model],model),
|
445 |
)
|
446 |
+
if warning:
|
447 |
with gr.TabItem("read this"):
|
448 |
gr.Markdown(f"This Spaces Using CPU dude\n may inference take long time\n")
|
449 |
+
|
|
|
|
|
450 |
with gr.TabItem("Train"):
|
451 |
with gr.Row():
|
452 |
with gr.Column():
|