PedroLancharesSanchez's picture
Update app.py
3ea32ba verified
raw
history blame
413 Bytes
# Load model directly
import gradio as gr
#from transformers import GraphormerForGraphClassification, pipeline
from huggingface_hub import transformers
from transformers import GraphormerForGraphClassification
import os
try:
import toml
except ImportError:
os.system('pip install toml')
import toml
model = GraphormerForGraphClassification.from_pretrained("PedroLancharesSanchez/graph-regression")