Spaces:
Running
Running
ZeroGPU test
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import re, os
|
2 |
from pathlib import Path
|
3 |
import gradio as gr
|
|
|
4 |
import torch
|
5 |
|
6 |
from evodiff.pretrained import OA_DM_38M, D3PM_UNIFORM_38M, MSA_OA_DM_MAXSUB
|
@@ -8,7 +9,7 @@ from evodiff.generate import generate_oaardm, generate_d3pm
|
|
8 |
from evodiff.generate_msa import generate_query_oadm_msa_simple
|
9 |
from evodiff.conditional_generation import inpaint_simple, generate_scaffold
|
10 |
|
11 |
-
|
12 |
def get_device():
|
13 |
if torch.cuda.is_available():
|
14 |
return "cuda"
|
|
|
1 |
import re, os
|
2 |
from pathlib import Path
|
3 |
import gradio as gr
|
4 |
+
import spaces
|
5 |
import torch
|
6 |
|
7 |
from evodiff.pretrained import OA_DM_38M, D3PM_UNIFORM_38M, MSA_OA_DM_MAXSUB
|
|
|
9 |
from evodiff.generate_msa import generate_query_oadm_msa_simple
|
10 |
from evodiff.conditional_generation import inpaint_simple, generate_scaffold
|
11 |
|
12 |
+
@spaces.GPU
|
13 |
def get_device():
|
14 |
if torch.cuda.is_available():
|
15 |
return "cuda"
|