shichen commited on
Commit
d6428a4
1 Parent(s): 12de40d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -44,11 +44,14 @@ with gr.Blocks() as demo:
44
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Describe what you do not wish to see.")
45
  seed = gr.Number(label="Seed", value=0, minimum=0, maximum=4294967294, step=1)
46
  generate_btn = gr.Button("Generate Image")
 
 
47
  with gr.Column(scale=1):
48
  output = gr.Image()
 
49
 
50
  generate_btn.click(fn=generate_image,
51
  inputs=[api_key, prompt, aspect_ratio, model, negative_prompt, seed],
52
  outputs=output)
53
 
54
- demo.launch(server_port=7855)
 
44
  negative_prompt = gr.Textbox(label="Negative Prompt", placeholder="Describe what you do not wish to see.")
45
  seed = gr.Number(label="Seed", value=0, minimum=0, maximum=4294967294, step=1)
46
  generate_btn = gr.Button("Generate Image")
47
+ api_key_info = gr.Text("API Key Application", style="bold") # Text display
48
+ api_key_link = gr.Link("https://platform.stability.ai/account/keys", "Apply Here") # Hyperlink
49
  with gr.Column(scale=1):
50
  output = gr.Image()
51
+
52
 
53
  generate_btn.click(fn=generate_image,
54
  inputs=[api_key, prompt, aspect_ratio, model, negative_prompt, seed],
55
  outputs=output)
56
 
57
+ demo.launch()