fix home page demos

This commit is contained in:
Ali Abid 2020-11-05 16:56:34 -08:00
parent 76d7985eaf
commit d50363dcf0
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import gradio as gr
import os, sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "utils"))
file_folder = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(file_folder, "utils"))
from FCN8s_keras import FCN
from PIL import Image
import cv2

View File

@ -1,6 +1,7 @@
import gradio as gr
import os, sys
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "utils"))
file_folder = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(file_folder, "utils"))
from bert import QA
model = QA('bert-large-uncased-whole-word-masking-finetuned-squad')