aiqtech commited on
Commit
092a2c8
·
verified ·
1 Parent(s): f422771

Update inference_webui.py

Browse files
Files changed (1) hide show
  1. inference_webui.py +4 -4
inference_webui.py CHANGED
@@ -15,11 +15,11 @@ if not os.path.exists(SAVE_DIR):
15
  os.makedirs(SAVE_DIR, exist_ok=True)
16
 
17
  # Load the default image
18
- DEFAULT_IMAGE_PATH = "cover1.webp"
19
 
20
  device = "cuda" if torch.cuda.is_available() else "cpu"
21
  repo_id = "black-forest-labs/FLUX.1-dev"
22
- adapter_id = "alvdansen/pola-photo-flux"
23
 
24
  pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
25
  pipeline.load_lora_weights(adapter_id)
@@ -94,7 +94,7 @@ def inference(
94
 
95
 
96
  examples = [
97
- "polaroid style, a woman with long blonde hair wearing big round hippie sunglasses with a slight smile, white oversized fur coat, black dress, early evening in the city, polaroid style [trigger]"
98
  ]
99
 
100
  css = """
@@ -104,7 +104,7 @@ footer {
104
  """
105
 
106
  with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
107
- gr.HTML('<div class="title"> Polaroid style Image Generation </div>')
108
 
109
 
110
  with gr.Tabs() as tabs:
 
15
  os.makedirs(SAVE_DIR, exist_ok=True)
16
 
17
  # Load the default image
18
+ DEFAULT_IMAGE_PATH = "cover1.jpg"
19
 
20
  device = "cuda" if torch.cuda.is_available() else "cpu"
21
  repo_id = "black-forest-labs/FLUX.1-dev"
22
+ adapter_id = "openfree/myt-flux-fantasy"
23
 
24
  pipeline = DiffusionPipeline.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
25
  pipeline.load_lora_weights(adapter_id)
 
94
 
95
 
96
  examples = [
97
+ "fantasy style, a woman with long blonde hair wearing big round hippie sunglasses with a slight smile, white oversized fur coat, black dress, early evening in the city, polaroid style [trigger]"
98
  ]
99
 
100
  css = """
 
104
  """
105
 
106
  with gr.Blocks(theme=gr.themes.Soft(), css=css, analytics_enabled=False) as demo:
107
+ gr.HTML('<div class="title"> Fantasy style Image Generation by FLUX</div>')
108
 
109
 
110
  with gr.Tabs() as tabs: