Spaces:
Running on Zero

Ruurd commited on
Commit
39b357a
·
verified ·
1 Parent(s): b30553b

Use a 30-second ZeroGPU reservation for interactive generation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ BIGRAM = BigramScorer.load(scorer_path("bigram_expanded.pt"), tokenizer=TOKENIZE
43
  TRIGRAM = TrigramScorer.load(scorer_path("trigram_expanded.pt"), bigram=BIGRAM)
44
 
45
 
46
- @spaces.GPU(size="large", duration=300)
47
  def generate(question, system_prompt, max_new_tokens, steps, block_length, temperature,
48
  top_k, color_mode, method, bigram_weight, threshold, editing_threshold,
49
  max_post_steps, early_stopping, max_steps_per_block):
 
43
  TRIGRAM = TrigramScorer.load(scorer_path("trigram_expanded.pt"), bigram=BIGRAM)
44
 
45
 
46
+ @spaces.GPU(size='large', duration=30)
47
  def generate(question, system_prompt, max_new_tokens, steps, block_length, temperature,
48
  top_k, color_mode, method, bigram_weight, threshold, editing_threshold,
49
  max_post_steps, early_stopping, max_steps_per_block):