PedroLancharesSanchez commited on
Commit
74a3db1
·
verified ·
1 Parent(s): b2c5b3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,8 @@
1
  # Load model directly
2
 
3
  import gradio as gr
4
- from huggingface_hub import AutoTokenizer, GraphormerForGraphClassification
 
5
 
6
  import os
7
  try:
@@ -10,5 +11,4 @@ except ImportError:
10
  os.system('pip install toml')
11
  import toml
12
 
13
- tokenizer = AutoTokenizer.from_pretrained("PedroLancharesSanchez/graph-regression")
14
  model = GraphormerForGraphClassification.from_pretrained("PedroLancharesSanchez/graph-regression")
 
1
  # Load model directly
2
 
3
  import gradio as gr
4
+ from huggingface_hub import transformers
5
+ from transformers import GraphormerForGraphClassification
6
 
7
  import os
8
  try:
 
11
  os.system('pip install toml')
12
  import toml
13
 
 
14
  model = GraphormerForGraphClassification.from_pretrained("PedroLancharesSanchez/graph-regression")