haohsiang commited on
Commit
032747e
Β·
1 Parent(s): 8f9ad62

update lora weights and README.md

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +3 -3
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: self-healing-bot
3
  sdk: gradio
4
  sdk_version: 4.36.1
5
  emoji: πŸ‘‚πŸ»
 
1
  ---
2
+ title: healing-bot-01
3
  sdk: gradio
4
  sdk_version: 4.36.1
5
  emoji: πŸ‘‚πŸ»
app.py CHANGED
@@ -28,8 +28,8 @@ pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.conf
28
  # θΌ‰ε…₯ LoRA
29
  lora_path = "./tbh368-sdxl.safetensors"
30
  pipe.load_lora_weights(lora_path, adapter_name="milton-glaser")
31
- pipe.set_adapters(["milton-glaser"], adapter_weights=[1.0])
32
  pipe.load_lora_weights("e-n-v-y/envyimpressionismxl01", weight_name="EnvyImpressionismXL01.safetensors", adapter_name="impressionism")
 
33
 
34
  # θΌ‰ε…₯ CVAW Corpus 資料
35
  cvaw_data = pd.read_csv('./CVAW_all_SD.csv', delimiter='\t')
@@ -125,7 +125,7 @@ def generate_images(history, conversation_times, last_genimg_times, generated_im
125
  last_genimg_times = conversation_times
126
 
127
  for i in range(4):
128
- img = pipe("modern digital impressionism, hard to understood, abstract, "+prompt,
129
  negative_prompt=neg_prompt,
130
  height=720, width=512,
131
  generator=generator[i],
@@ -287,7 +287,7 @@ with gr.Blocks(theme=theme, css=css, title='η™‚η™’ε°θ©±ζ©Ÿε™¨δΊΊ') as demo:
287
  arousal_scores = gr.State(value=[])
288
 
289
  gr.Markdown("# η™‚η™’ε°θ©±ζ©Ÿε™¨δΊΊ")
290
- Login = gr.LoginButton(value="η™»ε…₯ HuggingFace", logout_value="η™»ε‡Ί", variant="primary", size="sm")
291
 
292
  loading_message = gr.Textbox(visible=False, show_label=False)
293
  with gr.Column(visible=False) as audio_interface:
 
28
  # θΌ‰ε…₯ LoRA
29
  lora_path = "./tbh368-sdxl.safetensors"
30
  pipe.load_lora_weights(lora_path, adapter_name="milton-glaser")
 
31
  pipe.load_lora_weights("e-n-v-y/envyimpressionismxl01", weight_name="EnvyImpressionismXL01.safetensors", adapter_name="impressionism")
32
+ pipe.set_adapters(["milton-glaser", "impressionism"], adapter_weights=[1.0, 0.5])
33
 
34
  # θΌ‰ε…₯ CVAW Corpus 資料
35
  cvaw_data = pd.read_csv('./CVAW_all_SD.csv', delimiter='\t')
 
125
  last_genimg_times = conversation_times
126
 
127
  for i in range(4):
128
+ img = pipe("modern digital impressionism, style of Milton Glaser, hard to understood, abstract, "+prompt,
129
  negative_prompt=neg_prompt,
130
  height=720, width=512,
131
  generator=generator[i],
 
287
  arousal_scores = gr.State(value=[])
288
 
289
  gr.Markdown("# η™‚η™’ε°θ©±ζ©Ÿε™¨δΊΊ")
290
+ gr.LoginButton(value="η™»ε…₯ HuggingFace", logout_value="η™»ε‡Ί", variant="primary", size="sm")
291
 
292
  loading_message = gr.Textbox(visible=False, show_label=False)
293
  with gr.Column(visible=False) as audio_interface: