Spaces:
Runtime error
Runtime error
dalexanderch
commited on
Commit
•
046e052
1
Parent(s):
19eb0bc
Upload app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
|
|
2 |
from glycowork.ml.processing import dataset_to_dataloader
|
3 |
import numpy as np
|
4 |
import torch
|
|
|
5 |
|
|
|
6 |
def fn(model, class_list):
|
7 |
def f(glycan):
|
8 |
glycan = [glycan]
|
|
|
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 |
def fn(model, class_list):
|
9 |
def f(glycan):
|
10 |
glycan = [glycan]
|