Vijish commited on
Commit
391ab3b
Β·
verified Β·
1 Parent(s): a7aee5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(auth={"user": "roland"}) as demo:
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
- # Your Gradio interface setup here
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()