likewendy commited on
Commit
595c3d2
1 Parent(s): ca0543e
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -15,6 +15,7 @@ model = AutoModelForCausalLM.from_pretrained(
15
  tokenizer = AutoTokenizer.from_pretrained(model_name)
16
 
17
  # 定义生成回复的函数
 
18
  def respond(
19
  message,
20
  history: list[tuple[str, str]],
 
15
  tokenizer = AutoTokenizer.from_pretrained(model_name)
16
 
17
  # 定义生成回复的函数
18
+ @spaces.GPU
19
  def respond(
20
  message,
21
  history: list[tuple[str, str]],