hsuwill000 commited on
Commit
b12dd94
·
verified ·
1 Parent(s): 97e41b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def respond(message):
25
  # Generate response with improved settings
26
  response = pipe(
27
  instruction,
28
- max_length=1024, # 限制最大輸出長度,防止無限重複
29
  truncation=True,
30
  num_return_sequences=1,
31
  temperature=0.3, # 保持一定創意但減少胡言亂語
 
25
  # Generate response with improved settings
26
  response = pipe(
27
  instruction,
28
+ max_length=4096, # 限制最大輸出長度,防止無限重複
29
  truncation=True,
30
  num_return_sequences=1,
31
  temperature=0.3, # 保持一定創意但減少胡言亂語