Spaces:
Running
Running
victorisgeek
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ import gfpgan
|
|
6 |
import tempfile
|
7 |
import time
|
8 |
import gradio as gr
|
9 |
-
from gradio.themes.utils.theme_dropdown import create_theme_dropdown # noqa: F401
|
10 |
|
11 |
class Predictor:
|
12 |
def __init__(self):
|
@@ -69,9 +68,6 @@ class Predictor:
|
|
69 |
predictor = Predictor()
|
70 |
title = "🧸 Auto adjust Models 🧸"
|
71 |
|
72 |
-
# Create theme dropdown
|
73 |
-
dropdown, js = create_theme_dropdown()
|
74 |
-
|
75 |
# Create Gradio Interface with the specified theme
|
76 |
with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
77 |
with gr.Row(equal_height=True):
|
@@ -86,7 +82,7 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
|
86 |
title=title,
|
87 |
examples=[["input.jpg", "swap img.jpg"]]
|
88 |
)
|
89 |
-
|
90 |
|
91 |
# Launch the Gradio Interface
|
92 |
demo.launch()
|
|
|
6 |
import tempfile
|
7 |
import time
|
8 |
import gradio as gr
|
|
|
9 |
|
10 |
class Predictor:
|
11 |
def __init__(self):
|
|
|
68 |
predictor = Predictor()
|
69 |
title = "🧸 Auto adjust Models 🧸"
|
70 |
|
|
|
|
|
|
|
71 |
# Create Gradio Interface with the specified theme
|
72 |
with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
73 |
with gr.Row(equal_height=True):
|
|
|
82 |
title=title,
|
83 |
examples=[["input.jpg", "swap img.jpg"]]
|
84 |
)
|
85 |
+
iface.render()
|
86 |
|
87 |
# Launch the Gradio Interface
|
88 |
demo.launch()
|