mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
enforce static url path for tests
This commit is contained in:
parent
8bc42319f6
commit
904f343394
@ -36,7 +36,8 @@ GRADIO_STATIC_ROOT = "https://gradio.app"
|
||||
|
||||
app = Flask(__name__,
|
||||
template_folder=STATIC_TEMPLATE_LIB,
|
||||
static_folder=STATIC_PATH_LIB)
|
||||
static_folder=STATIC_PATH_LIB,
|
||||
static_url_path="/static/")
|
||||
CORS(app)
|
||||
cache_buster = CacheBuster(config={'extensions': ['.js', '.css'], 'hash_size': 5})
|
||||
cache_buster.init_app(app)
|
||||
|
@ -66,7 +66,7 @@
|
||||
<body id="lib">
|
||||
<div id="interface_target" class="container"></div>
|
||||
<div id="credit"><a href="https://github.com/gradio-app/gradio" target="_blank">
|
||||
<img src="static/img/logo_inline.png">
|
||||
<img src="/static/img/logo_inline.png">
|
||||
</a></div>
|
||||
<!-- VENDOR -->
|
||||
<script src="{{ vendor_prefix }}/static/js/vendor/jquery.min.js"></script>
|
||||
|
@ -36,7 +36,8 @@ GRADIO_STATIC_ROOT = "https://gradio.app"
|
||||
|
||||
app = Flask(__name__,
|
||||
template_folder=STATIC_TEMPLATE_LIB,
|
||||
static_folder=STATIC_PATH_LIB)
|
||||
static_folder=STATIC_PATH_LIB,
|
||||
static_url_path="/static/")
|
||||
CORS(app)
|
||||
cache_buster = CacheBuster(config={'extensions': ['.js', '.css'], 'hash_size': 5})
|
||||
cache_buster.init_app(app)
|
||||
|
@ -66,7 +66,7 @@
|
||||
<body id="lib">
|
||||
<div id="interface_target" class="container"></div>
|
||||
<div id="credit"><a href="https://github.com/gradio-app/gradio" target="_blank">
|
||||
<img src="static/img/logo_inline.png">
|
||||
<img src="/static/img/logo_inline.png">
|
||||
</a></div>
|
||||
<!-- VENDOR -->
|
||||
<script src="{{ vendor_prefix }}/static/js/vendor/jquery.min.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user