Spaces:
Running
on
Zero
Running
on
Zero
init
Browse files
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]],
|