username commited on
Commit
457d89f
·
1 Parent(s): f0d3584
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
6
  tokenizer = AutoTokenizer.from_pretrained("llm-jp/llm-jp-3-8x1.8b-instruct3")
7
  model = None
8
 
9
- @spaces.GPU(duration=120)
10
  def generate_text(system_prompt, user_input, max_length=512, temperature=0.7, top_p=0.95):
11
  global model
12
  if model is None:
 
6
  tokenizer = AutoTokenizer.from_pretrained("llm-jp/llm-jp-3-8x1.8b-instruct3")
7
  model = None
8
 
9
+ @spaces.GPU
10
  def generate_text(system_prompt, user_input, max_length=512, temperature=0.7, top_p=0.95):
11
  global model
12
  if model is None: