mrfakename commited on
Commit
7634e1f
·
verified ·
1 Parent(s): 32eaed9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -4,12 +4,16 @@ import json
4
 
5
  import torch
6
 
7
- def main(args):
8
- torch.manual_seed(42)
 
 
 
 
 
9
 
10
- interface = create_ui(model_config_path = args.model_config, ckpt_path=args.ckpt_path, pretrained_name=args.pretrained_name, pretransform_ckpt_path=args.pretransform_ckpt_path)
11
- interface.queue()
12
- interface.launch(share=True, auth=(args.username, args.password) if args.username is not None else None)
13
 
14
  if __name__ == "__main__":
15
  import argparse
 
4
 
5
  import torch
6
 
7
+ interface = create_ui(
8
+ model_config_path = str(cached_path('https://raw.githubusercontent.com/zxxwxyyy/sonique/refs/heads/main/best_model.json')),
9
+ ckpt_path=str(cached_path('hf://mrfakename/SONIQUE/stable_ep=220.ckpt')),
10
+ # pretrained_name=args.pretrained_name,
11
+ pretransform_ckpt_path=None
12
+ )
13
+ interface.queue().launch()
14
 
15
+
16
+
 
17
 
18
  if __name__ == "__main__":
19
  import argparse