Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -202,7 +202,7 @@ def run_lora(prompt, image_url, lora_strings_json, image_strength, cfg_scale, s
|
|
202 |
|
203 |
gr.Info("Completed!")
|
204 |
progress(100, "Completed!")
|
205 |
-
return
|
206 |
|
207 |
# Gradio interface
|
208 |
|
@@ -247,9 +247,8 @@ with gr.Blocks(css=css) as demo:
|
|
247 |
|
248 |
|
249 |
with gr.Column():
|
250 |
-
result = gr.Image(label="Result", show_label=False)
|
251 |
-
seed_output = gr.Text(label="Seed")
|
252 |
json_text = gr.Text(label="Result JSON")
|
|
|
253 |
gr.Markdown("**Disclaimer:**")
|
254 |
gr.Markdown(
|
255 |
"This demo is only for research purpose. This space owner cannot be held responsible for the generation of NSFW (Not Safe For Work) content through the use of this demo. Users are solely responsible for any content they create, and it is their obligation to ensure that it adheres to appropriate and ethical standards. This space owner provides the tools, but the responsibility for their use lies with the individual user."
|
@@ -272,7 +271,7 @@ with gr.Blocks(css=css) as demo:
|
|
272 |
bucket
|
273 |
]
|
274 |
|
275 |
-
outputs = [
|
276 |
|
277 |
run_button.click(
|
278 |
fn=run_lora,
|
|
|
202 |
|
203 |
gr.Info("Completed!")
|
204 |
progress(100, "Completed!")
|
205 |
+
return json.dumps(result)
|
206 |
|
207 |
# Gradio interface
|
208 |
|
|
|
247 |
|
248 |
|
249 |
with gr.Column():
|
|
|
|
|
250 |
json_text = gr.Text(label="Result JSON")
|
251 |
+
|
252 |
gr.Markdown("**Disclaimer:**")
|
253 |
gr.Markdown(
|
254 |
"This demo is only for research purpose. This space owner cannot be held responsible for the generation of NSFW (Not Safe For Work) content through the use of this demo. Users are solely responsible for any content they create, and it is their obligation to ensure that it adheres to appropriate and ethical standards. This space owner provides the tools, but the responsibility for their use lies with the individual user."
|
|
|
271 |
bucket
|
272 |
]
|
273 |
|
274 |
+
outputs = [json_text]
|
275 |
|
276 |
run_button.click(
|
277 |
fn=run_lora,
|