tangzhy commited on
Commit
5ab915e
·
verified ·
1 Parent(s): 79d7c57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,7 +46,7 @@ model = AutoModelForCausalLM.from_pretrained(
46
  model.eval()
47
 
48
 
49
- @spaces.GPU(duration=120)
50
  def generate(
51
  message: str,
52
  chat_history: list[tuple[str, str]],
@@ -84,8 +84,8 @@ def generate(
84
  outputs.append(text)
85
  yield "".join(outputs)
86
 
87
- outputs.append("\n\nI have now attempted to solve the optimization modeling task! Please try executing the code in your environment, making sure it is equipped with `coptpy`.")
88
- yield "".join(outputs)
89
 
90
 
91
  chat_interface = gr.ChatInterface(
 
46
  model.eval()
47
 
48
 
49
+ @spaces.GPU(duration=100)
50
  def generate(
51
  message: str,
52
  chat_history: list[tuple[str, str]],
 
84
  outputs.append(text)
85
  yield "".join(outputs)
86
 
87
+ # outputs.append("\n\nI have now attempted to solve the optimization modeling task! Please try executing the code in your environment, making sure it is equipped with `coptpy`.")
88
+ # yield "".join(outputs)
89
 
90
 
91
  chat_interface = gr.ChatInterface(