AI-Journey2 commited on
Commit
9fe9342
1 Parent(s): ab70f27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -3,9 +3,7 @@ from PIL import Image
3
  import gradio as gr
4
  from io import BytesIO
5
 
6
- url = "https://stablediffusionapi.com/api/v3/text2img"
7
- title = """<h2><center>Text to Image Generation with Stable Diffusion API</center></h2>"""
8
- description = """#### Get the API key by signing up here [Stable Diffusion API](https://stablediffusionapi.com)."""
9
 
10
  def get_image(key, prompt, inference_steps, filter):
11
  payload = {
 
3
  import gradio as gr
4
  from io import BytesIO
5
 
6
+ pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1")
 
 
7
 
8
  def get_image(key, prompt, inference_steps, filter):
9
  payload = {