victorisgeek commited on
Commit
1b6f855
1 Parent(s): bb968da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -3,6 +3,8 @@ from refacer import Refacer
3
  import ngrok
4
  import time
5
  import threading
 
 
6
 
7
  # Initialize Refacer
8
  def initialize_refacer():
@@ -60,7 +62,12 @@ from gradio.themes.utils.theme_dropdown import create_theme_dropdown # noqa: F40
60
 
61
  dropdown, js = create_theme_dropdown()
62
 
63
- with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
 
 
 
 
 
64
  with gr.Row(equal_height=True):
65
  with gr.Column(scale=10):
66
  gr.Markdown("# 🧸Refacer")
 
3
  import ngrok
4
  import time
5
  import threading
6
+ from gradio.themes.utils.theme_dropdown import create_theme_dropdown # noqa: F401
7
+ import json
8
 
9
  # Initialize Refacer
10
  def initialize_refacer():
 
62
 
63
  dropdown, js = create_theme_dropdown()
64
 
65
+
66
+ theme_path = 'themes/themes_theme_schema@4.36.0.json'
67
+ with open(theme_path, 'r') as theme_file:
68
+ custom_theme = json.load(theme_file)
69
+
70
+ with gr.Blocks(theme=custom_theme) as demo:
71
  with gr.Row(equal_height=True):
72
  with gr.Column(scale=10):
73
  gr.Markdown("# 🧸Refacer")