xieqilenb commited on
Commit
50d76c0
·
verified ·
1 Parent(s): 517a9fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def generate_story(caption):
25
  # 使用 GPU 进行文本生成操作
26
  story_generator = pipeline(
27
  "text-generation",
28
- model="openai-community/gpt2-medium",
29
  device=device_id
30
  )
31
  messages = (
 
25
  # 使用 GPU 进行文本生成操作
26
  story_generator = pipeline(
27
  "text-generation",
28
+ model="Qwen/Qwen2-1.5B",
29
  device=device_id
30
  )
31
  messages = (