Spaces:
Running
on
Zero
Running
on
Zero
Update
Browse files
app.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
|
| 3 |
-
import os
|
| 4 |
-
|
| 5 |
import gradio as gr
|
| 6 |
import torch
|
| 7 |
|
|
@@ -17,11 +15,7 @@ if not torch.cuda.is_available():
|
|
| 17 |
|
| 18 |
with gr.Blocks(css_paths="style.css") as demo:
|
| 19 |
gr.Markdown(DESCRIPTION)
|
| 20 |
-
|
| 21 |
-
value="Duplicate Space for private use",
|
| 22 |
-
elem_id="duplicate-button",
|
| 23 |
-
visible=os.getenv("SHOW_DUPLICATE_BUTTON") == "1",
|
| 24 |
-
)
|
| 25 |
with gr.Tabs():
|
| 26 |
with gr.Tab(label="Zero-shot Subject-driven Generation"):
|
| 27 |
demo_zero_shot.render()
|
|
|
|
| 1 |
#!/usr/bin/env python
|
| 2 |
|
|
|
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
|
|
|
|
| 15 |
|
| 16 |
with gr.Blocks(css_paths="style.css") as demo:
|
| 17 |
gr.Markdown(DESCRIPTION)
|
| 18 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
with gr.Tabs():
|
| 20 |
with gr.Tab(label="Zero-shot Subject-driven Generation"):
|
| 21 |
demo_zero_shot.render()
|