larry1129 commited on
Commit
ba7d918
·
verified ·
1 Parent(s): efa5b9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def generate_prompt(instruction, input_text="", output_text=None):
34
  return prompt
35
 
36
  # 定义生成响应的函数,并使用 @spaces.GPU 装饰
37
- @spaces.GPU(duration=120)
38
  def generate_response(instruction, input_text):
39
  global model, tokenizer
40
 
 
34
  return prompt
35
 
36
  # 定义生成响应的函数,并使用 @spaces.GPU 装饰
37
+ @spaces.GPU(duration=40)
38
  def generate_response(instruction, input_text):
39
  global model, tokenizer
40