mohan260851 commited on
Commit
730966b
·
verified ·
1 Parent(s): db2e7ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def image_generator(description: str)->Image.Image :
52
  # output is a PIL.Image object
53
  image = client.text_to_image(
54
  prompt=description,
55
- model="dreamlike-art/dreamlike-photoreal-2.0"
56
  )
57
  return image
58
  except Exception as e:
@@ -72,7 +72,7 @@ custom_role_conversions=None,
72
 
73
 
74
  # Import tool from Hub
75
- image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
76
 
77
  with open("prompts.yaml", 'r') as stream:
78
  prompt_templates = yaml.safe_load(stream)
 
52
  # output is a PIL.Image object
53
  image = client.text_to_image(
54
  prompt=description,
55
+ model="black-forest-labs/FLUX.1-schnell"
56
  )
57
  return image
58
  except Exception as e:
 
72
 
73
 
74
  # Import tool from Hub
75
+ # image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
76
 
77
  with open("prompts.yaml", 'r') as stream:
78
  prompt_templates = yaml.safe_load(stream)