Sriv890 commited on
Commit
2343431
·
verified ·
1 Parent(s): 36c08ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,8 +95,8 @@ def query(payload, max_retries=5):
95
  return None
96
 
97
  # Function for direct prompt to image generation
98
- def generate_image_from_prompt(prompt):
99
- image_bytes = query({"inputs": prompt})
100
 
101
  if image_bytes is None:
102
  error_img = Image.new('RGB', (300, 300), color=(255, 0, 0))
 
95
  return None
96
 
97
  # Function for direct prompt to image generation
98
+ def generate_image(prompt):
99
+ image_bytes = query({"inputs": prompt})
100
 
101
  if image_bytes is None:
102
  error_img = Image.new('RGB', (300, 300), color=(255, 0, 0))