Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
c2c71c9
1
Parent(s):
f82c2f2
22
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ h3{
|
|
| 125 |
|
| 126 |
with open('examples/0_examples.json', 'r') as file: examples = json.load(file)
|
| 127 |
with gr.Blocks() as demo:
|
| 128 |
-
has_lora = gr.State(
|
| 129 |
with gr.Column(elem_id="col-container"):
|
| 130 |
with gr.Column():
|
| 131 |
gr.HTML(read_file("static/header.html"))
|
|
@@ -145,7 +145,7 @@ with gr.Blocks() as demo:
|
|
| 145 |
lora_path = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
|
| 146 |
lora_download = gr.DownloadButton(label=f"Download LoRA", visible=has_lora)
|
| 147 |
with gr.Accordion("Generate Image", open=False):
|
| 148 |
-
gr.Markdown("### After your LoRA is ready, you can try generate image
|
| 149 |
with gr.Row():
|
| 150 |
with gr.Column():
|
| 151 |
prompt = gr.Textbox(
|
|
@@ -154,7 +154,7 @@ with gr.Blocks() as demo:
|
|
| 154 |
lines=2,
|
| 155 |
placeholder="Enter your prompt",
|
| 156 |
value="a man in a fishing boat. high quality, detailed"
|
| 157 |
-
|
| 158 |
)
|
| 159 |
|
| 160 |
imagen_button = gr.Button("Generate Image", variant="primary")
|
|
|
|
| 125 |
|
| 126 |
with open('examples/0_examples.json', 'r') as file: examples = json.load(file)
|
| 127 |
with gr.Blocks() as demo:
|
| 128 |
+
has_lora = gr.State(False)
|
| 129 |
with gr.Column(elem_id="col-container"):
|
| 130 |
with gr.Column():
|
| 131 |
gr.HTML(read_file("static/header.html"))
|
|
|
|
| 145 |
lora_path = gr.Textbox(label="Generated LoRA path",lines=2, interactive=False)
|
| 146 |
lora_download = gr.DownloadButton(label=f"Download LoRA", visible=has_lora)
|
| 147 |
with gr.Accordion("Generate Image", open=False):
|
| 148 |
+
gr.Markdown("### After your LoRA is ready, you can try generate image here.")
|
| 149 |
with gr.Row():
|
| 150 |
with gr.Column():
|
| 151 |
prompt = gr.Textbox(
|
|
|
|
| 154 |
lines=2,
|
| 155 |
placeholder="Enter your prompt",
|
| 156 |
value="a man in a fishing boat. high quality, detailed"
|
| 157 |
+
container=False,
|
| 158 |
)
|
| 159 |
|
| 160 |
imagen_button = gr.Button("Generate Image", variant="primary")
|