SmilingTree commited on
Commit
65ad6a7
·
verified ·
1 Parent(s): 41c2f87
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -7,7 +7,6 @@ text_pipeline = pipeline("text-generation", model="isarth/distill_gpt2_story_gen
7
 
8
  # 圖像生成模型
9
  image_pipeline = DiffusionPipeline.from_pretrained("prompthero/openjourney")
10
- image_pipeline.to("cuda") # 若部署環境支援 GPU,這樣可加速生成
11
 
12
  # 文字生成函式
13
  def generate_story(input_text):
 
7
 
8
  # 圖像生成模型
9
  image_pipeline = DiffusionPipeline.from_pretrained("prompthero/openjourney")
 
10
 
11
  # 文字生成函式
12
  def generate_story(input_text):