Spaces:
Runtime error
Runtime error
Commit
•
1208e66
1
Parent(s):
2f1f455
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
from queue import Queue
|
2 |
from threading import Thread
|
3 |
from typing import Optional
|
@@ -8,9 +11,6 @@ import torch
|
|
8 |
from transformers import MusicgenForConditionalGeneration, MusicgenProcessor, set_seed
|
9 |
from transformers.generation.streamers import BaseStreamer
|
10 |
|
11 |
-
import gradio as gr
|
12 |
-
import spaces
|
13 |
-
|
14 |
|
15 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small", low_cpu_mem_usage=True)
|
16 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import spaces
|
3 |
+
|
4 |
from queue import Queue
|
5 |
from threading import Thread
|
6 |
from typing import Optional
|
|
|
11 |
from transformers import MusicgenForConditionalGeneration, MusicgenProcessor, set_seed
|
12 |
from transformers.generation.streamers import BaseStreamer
|
13 |
|
|
|
|
|
|
|
14 |
|
15 |
model = MusicgenForConditionalGeneration.from_pretrained("facebook/musicgen-small", low_cpu_mem_usage=True)
|
16 |
processor = MusicgenProcessor.from_pretrained("facebook/musicgen-small")
|