Spaces:
Runtime error
Runtime error
Commit
·
c20f071
1
Parent(s):
5e62770
Upload app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from glycowork.ml.processing import dataset_to_dataloader
|
| 3 |
import numpy as np
|
| 4 |
import torch
|
| 5 |
-
import os
|
| 6 |
|
| 7 |
-
os.system("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu")
|
| 8 |
-
os.system("pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cpu.html")
|
| 9 |
|
| 10 |
def fn(model, class_list):
|
| 11 |
def f(glycan):
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
os.system("pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu")
|
| 3 |
+
os.system("pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cpu.html")
|
| 4 |
+
|
| 5 |
import gradio as gr
|
| 6 |
from glycowork.ml.processing import dataset_to_dataloader
|
| 7 |
import numpy as np
|
| 8 |
import torch
|
|
|
|
| 9 |
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def fn(model, class_list):
|
| 12 |
def f(glycan):
|