dalexanderch commited on
Commit
2b584be
1 Parent(s): 50edbe9

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,7 +1,6 @@
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
@@ -67,7 +66,7 @@ def fn(glycan, model):
67
  f = fn(class_list)
68
 
69
  demo = gr.Interface(
70
- fn=f,
71
  inputs=[gr.Textbox(label="Glycan sequence"), gr.Radio(label="Model",choices=["No data augmentation", "Random node deletion"])],
72
  outputs=[gr.Label(num_top_classes=15, label="Prediction")],
73
  allow_flagging=False,
 
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
  import gradio as gr
5
  from glycowork.ml.processing import dataset_to_dataloader
6
  import numpy as np
 
66
  f = fn(class_list)
67
 
68
  demo = gr.Interface(
69
+ fn=fn,
70
  inputs=[gr.Textbox(label="Glycan sequence"), gr.Radio(label="Model",choices=["No data augmentation", "Random node deletion"])],
71
  outputs=[gr.Label(num_top_classes=15, label="Prediction")],
72
  allow_flagging=False,