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