Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
4 |
models = [
|
5 |
{"name": "Stable Diffusion 2", "url": "stabilityai/stable-diffusion-2-1"},
|
6 |
{"name": "stability AI", "url": "stabilityai/stable-diffusion-2-1-base"},
|
@@ -43,7 +47,7 @@ def set_model(current_model_index):
|
|
43 |
return gr.update(value=f"{current_model['name']}")
|
44 |
|
45 |
|
46 |
-
with gr.Blocks(
|
47 |
gr.Markdown("AI CONTENT TOOLS.")
|
48 |
|
49 |
with gr.Tab("T-to-I"):
|
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
|
4 |
+
from theme_dropdown import create_theme_dropdown # noqa: F401
|
5 |
+
|
6 |
+
dropdown, js = create_theme_dropdown()
|
7 |
+
|
8 |
models = [
|
9 |
{"name": "Stable Diffusion 2", "url": "stabilityai/stable-diffusion-2-1"},
|
10 |
{"name": "stability AI", "url": "stabilityai/stable-diffusion-2-1-base"},
|
|
|
47 |
return gr.update(value=f"{current_model['name']}")
|
48 |
|
49 |
|
50 |
+
with gr.Blocks() as pan:
|
51 |
gr.Markdown("AI CONTENT TOOLS.")
|
52 |
|
53 |
with gr.Tab("T-to-I"):
|