Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ The ABC notation can then be processed by WeaveMuse locally for XML/PDF conversi
|
|
| 8 |
"""
|
| 9 |
|
| 10 |
import gradio as gr
|
|
|
|
| 11 |
import torch
|
| 12 |
import logging
|
| 13 |
import traceback
|
|
@@ -31,6 +32,7 @@ except Exception as e:
|
|
| 31 |
notagen_tool = None
|
| 32 |
|
| 33 |
|
|
|
|
| 34 |
def generate_abc(period: str, composer: str, instrumentation: str) -> str:
|
| 35 |
"""
|
| 36 |
Generate ABC notation using NotaGen.
|
|
|
|
| 8 |
"""
|
| 9 |
|
| 10 |
import gradio as gr
|
| 11 |
+
import spaces
|
| 12 |
import torch
|
| 13 |
import logging
|
| 14 |
import traceback
|
|
|
|
| 32 |
notagen_tool = None
|
| 33 |
|
| 34 |
|
| 35 |
+
@spaces.GPU()
|
| 36 |
def generate_abc(period: str, composer: str, instrumentation: str) -> str:
|
| 37 |
"""
|
| 38 |
Generate ABC notation using NotaGen.
|