Spaces:
Running
on
Zero
Running
on
Zero
drscotthawley
commited on
Commit
•
caabda6
1
Parent(s):
2f1d17b
added all imports for all codes
Browse files
app.py
CHANGED
@@ -1,4 +1,29 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
|
|
1 |
+
# imports from gradio_demo.py
|
2 |
+
import gradio as gr
|
3 |
+
import numpy as np
|
4 |
+
from PIL import Image
|
5 |
+
import torch
|
6 |
+
from torchvision.transforms import ToTensor, ToPILImage
|
7 |
+
import sys
|
8 |
+
import os
|
9 |
+
from midi_player import MIDIPlayer
|
10 |
+
from midi_player.stylers import basic, cifka_advanced, dark
|
11 |
+
import numpy as np
|
12 |
+
from time import sleep
|
13 |
+
from subprocess import call
|
14 |
+
import pandas as pd
|
15 |
+
|
16 |
+
# imports from sample.py
|
17 |
+
import argparse
|
18 |
+
from pathlib import Path
|
19 |
+
import accelerate
|
20 |
+
import safetensors.torch as safetorch
|
21 |
+
#import torch
|
22 |
+
from tqdm import trange, tqdm
|
23 |
+
#from PIL import Image
|
24 |
+
from torchvision import transforms
|
25 |
+
import k_diffusion as K
|
26 |
+
|
27 |
|
28 |
def greet(name):
|
29 |
return "Hello " + name + "!!"
|