Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
# Load model directly
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
-
from huggingface_hub import
|
|
|
|
| 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")
|