gaochangkuan commited on
Commit
4fcd9c3
1 Parent(s): d23bb14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,7 +24,6 @@ model= AutoModelForCausalLM.from_pretrained(
24
 
25
 
26
  model = torch.compile(model)
27
- #model.to("cuda")
28
  model = model.eval()
29
 
30
 
@@ -75,7 +74,7 @@ tokenizer.chat_template = """{% for message in messages %}
75
  {% endif %}
76
  {% endfor %}""".replace("\n", "").replace(" ", "")
77
 
78
- @spaces.GPU(duration=40)
79
  def chat_zhuji(
80
  message: str,
81
  history: list,
 
24
 
25
 
26
  model = torch.compile(model)
 
27
  model = model.eval()
28
 
29
 
 
74
  {% endif %}
75
  {% endfor %}""".replace("\n", "").replace(" ", "")
76
 
77
+ @spaces.GPU(duration=20)
78
  def chat_zhuji(
79
  message: str,
80
  history: list,