mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
hacky way to get imports to work
This commit is contained in:
parent
e09df09d9e
commit
b851831aef
@ -1,7 +1,15 @@
|
||||
import random
|
||||
import unittest
|
||||
|
||||
from test_data.blocks_configs import XRAY_CONFIG
|
||||
try:
|
||||
from .test_data.blocks_configs import XRAY_CONFIG # for pytest
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from test_data.blocks_configs import XRAY_CONFIG # for regular python
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
import gradio as gr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user