hugggof commited on
Commit
4031ea3
·
verified ·
1 Parent(s): 69b383b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -21
app.py CHANGED
@@ -420,27 +420,25 @@ with gr.Blocks() as demo:
420
  api_name="vamp"
421
  )
422
 
423
- from pyharp import ModelCard, build_endpoint
424
- card = ModelCard(
425
- name="vampnet",
426
- description="vampnet is a model for generating audio from audio",
427
- author="hugo flores garcía",
428
- tags=["music generation"],
429
- midi_in=False,
430
- midi_out=False
431
- )
432
-
433
- # Build a HARP-compatible endpoint
434
- app = build_endpoint(model_card=card,
435
- components=[
436
- periodic_p,
437
- n_mask_codebooks,
438
- ],
439
- process_fn=harp_vamp)
440
-
441
- app.queue()
442
- app.launch(share=True)
443
-
444
 
445
  try:
446
  demo.queue()
 
420
  api_name="vamp"
421
  )
422
 
423
+ from pyharp import ModelCard, build_endpoint
424
+ card = ModelCard(
425
+ name="vampnet",
426
+ description="vampnet is a model for generating audio from audio",
427
+ author="hugo flores garcía",
428
+ tags=["music generation"],
429
+ midi_in=False,
430
+ midi_out=False
431
+ )
432
+
433
+ # Build a HARP-compatible endpoint
434
+ app = build_endpoint(model_card=card,
435
+ components=[
436
+ periodic_p,
437
+ n_mask_codebooks,
438
+ ],
439
+ process_fn=harp_vamp)
440
+
441
+
 
 
442
 
443
  try:
444
  demo.queue()