90
commited on
Commit
·
9ff9b84
1
Parent(s):
e6a16df
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 12 |
device_map="auto",
|
| 13 |
trust_remote_code=True
|
| 14 |
)
|
| 15 |
-
@spaces.GPU(duration=
|
| 16 |
def predict(message, history):
|
| 17 |
# 构建输入
|
| 18 |
history_text = ""
|
|
|
|
| 12 |
device_map="auto",
|
| 13 |
trust_remote_code=True
|
| 14 |
)
|
| 15 |
+
@spaces.GPU(duration=120)
|
| 16 |
def predict(message, history):
|
| 17 |
# 构建输入
|
| 18 |
history_text = ""
|