Spaces:
Runtime error
Runtime error
phenomenon1981
commited on
Commit
•
717fefc
1
Parent(s):
bbc58f1
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
model1 = gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
|
4 |
-
model1.launch()
|
5 |
-
|
6 |
model2 = gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
7 |
-
model2
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
model1 = gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
|
|
|
|
|
4 |
model2 = gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
|
5 |
+
models_list = [model1, model2]
|
6 |
+
selected_model = gr.selector(models_list, label="Select model")
|
7 |
+
selected_model.launch()
|