Baseta commited on
Commit
561e9e6
1 Parent(s): 95b2d3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -1481,7 +1481,18 @@ def zip_downloader(model):
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
- with gr.Blocks(theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"),css=".dark {background-color: red}", title="BasetaTube RVC TTS") as app:
 
 
 
 
 
 
 
 
 
 
 
1485
  with gr.Tabs():
1486
  with gr.TabItem("Inference"):
1487
  gr.HTML("<table align='center' border='0' padding='10'><tr><td><img src='/file=Btubel.png' width='300' /></td><td align='center'><center><h1 style='font-size:30px'>RVC TTS</h1><h1 style='font-size:28px'>تحويل النص الى صوت عربي من اى صوت تريده <br>أشترك فى قناة بسيطة تيوب للمزيد من فيديوهات التكنولوجيا و الذكاء الاصطناعى<br><a href='https://www.youtube.com/@basetatube/?sub_confirmation=1' target='_blank'>أشترك الأن</a></h1></center></td></tr></table>Huggingface port by Ilaria of the Rejekt Easy GUI")
 
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
+ js_func = """
1485
+ function refresh() {
1486
+ const url = new URL(window.location);
1487
+
1488
+ if (url.searchParams.get('__theme') !== 'dark') {
1489
+ url.searchParams.set('__theme', 'dark');
1490
+ window.location.href = url.href;
1491
+ }
1492
+ }
1493
+ """
1494
+
1495
+ with gr.Blocks(js=js_func, theme=gr.themes.Default(primary_hue="red", secondary_hue="rose"), title="BasetaTube RVC TTS") as app:
1496
  with gr.Tabs():
1497
  with gr.TabItem("Inference"):
1498
  gr.HTML("<table align='center' border='0' padding='10'><tr><td><img src='/file=Btubel.png' width='300' /></td><td align='center'><center><h1 style='font-size:30px'>RVC TTS</h1><h1 style='font-size:28px'>تحويل النص الى صوت عربي من اى صوت تريده <br>أشترك فى قناة بسيطة تيوب للمزيد من فيديوهات التكنولوجيا و الذكاء الاصطناعى<br><a href='https://www.youtube.com/@basetatube/?sub_confirmation=1' target='_blank'>أشترك الأن</a></h1></center></td></tr></table>Huggingface port by Ilaria of the Rejekt Easy GUI")