WYBar commited on
Commit
ca6295a
·
1 Parent(s): 368bfd7

cpu or cuda

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -529,15 +529,15 @@ def main():
529
  # model, quantizer, tokenizer, width, height, device = construction_layout()
530
  width, height, device = construction_layout()
531
 
532
- inference_partial = partial(
533
- inference,
534
- model=model,
535
- quantizer=quantizer,
536
- tokenizer=tokenizer,
537
- width=width,
538
- height=height,
539
- device=device
540
- )
541
 
542
  def process_preddate(intention, temperature, top_p, generate_method='v1'):
543
  intention = intention.replace('\n', '').replace('\r', '').replace('\\', '')
 
529
  # model, quantizer, tokenizer, width, height, device = construction_layout()
530
  width, height, device = construction_layout()
531
 
532
+ # inference_partial = partial(
533
+ # inference,
534
+ # model=model,
535
+ # quantizer=quantizer,
536
+ # tokenizer=tokenizer,
537
+ # width=width,
538
+ # height=height,
539
+ # device=device
540
+ # )
541
 
542
  def process_preddate(intention, temperature, top_p, generate_method='v1'):
543
  intention = intention.replace('\n', '').replace('\r', '').replace('\\', '')