mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
fix home page demos
This commit is contained in:
parent
76d7985eaf
commit
d50363dcf0
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user