Skip to content
Snippets Groups Projects

Qim theme

4 files
+ 1
16
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
8
@@ -58,9 +58,7 @@ class Interface:
@@ -58,9 +58,7 @@ class Interface:
self.temp_dir = os.path.join(tempfile.gettempdir(), f"qim-{self.username}")
self.temp_dir = os.path.join(tempfile.gettempdir(), f"qim-{self.username}")
self.name_suffix = None
self.name_suffix = None
# CSS path
current_dir = os.path.dirname(os.path.abspath(__file__))
self.css_path = os.path.join(current_dir, "..", "css", "gradio.css")
def launch(self, img=None, force_light_mode:bool = True, **kwargs):
def launch(self, img=None, force_light_mode:bool = True, **kwargs):
# Create gradio interfaces
# Create gradio interfaces
@@ -105,11 +103,6 @@ class Interface:
@@ -105,11 +103,6 @@ class Interface:
def create_interface(self, img=None, force_light_mode:bool = False):
def create_interface(self, img=None, force_light_mode:bool = False):
if img is not None:
custom_css = "annotation-tool"
else:
custom_css = "annotation-tool no-img"
with gr.Blocks(theme = QimTheme(force_light_mode = force_light_mode), title=self.title) as gradio_interface:
with gr.Blocks(theme = QimTheme(force_light_mode = force_light_mode), title=self.title) as gradio_interface:
brush = gr.Brush(
brush = gr.Brush(
Loading