Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -306,7 +306,7 @@ def extract_png_info(image_path):
|
|
306 |
return metadata
|
307 |
|
308 |
# Define the Gradio interface
|
309 |
-
with gr.Blocks(
|
310 |
gr.Markdown("# Image Generation with Custom Prompts and Styles")
|
311 |
|
312 |
with gr.Row():
|
@@ -384,6 +384,6 @@ with gr.Blocks(auth={"user": "roland"}) as demo:
|
|
384 |
|
385 |
# At the end of your script:
|
386 |
if __name__ == "__main__":
|
387 |
-
|
388 |
-
demo.launch(debug=True)
|
389 |
clear_memory()
|
|
|
306 |
return metadata
|
307 |
|
308 |
# Define the Gradio interface
|
309 |
+
with gr.Blocks() as demo:
|
310 |
gr.Markdown("# Image Generation with Custom Prompts and Styles")
|
311 |
|
312 |
with gr.Row():
|
|
|
384 |
|
385 |
# At the end of your script:
|
386 |
if __name__ == "__main__":
|
387 |
+
auth = gr.auth.Basic(username="roland", password="roland")
|
388 |
+
demo.launch(auth=auth, debug=True)
|
389 |
clear_memory()
|