Spaces:
Configuration error
Configuration error
zack
commited on
Commit
β’
89c0e23
1
Parent(s):
816c2fe
π fix(importer): address issues in importer component
Browse files
frontend/components/Modal/importer.js
CHANGED
@@ -110,8 +110,8 @@ function Shared(props){
|
|
110 |
|
111 |
const isFetchable = async (url) => {
|
112 |
const pattern = {
|
113 |
-
share :
|
114 |
-
hugginFace :
|
115 |
}
|
116 |
|
117 |
if (!pattern.share.test(url) &&
|
|
|
110 |
|
111 |
const isFetchable = async (url) => {
|
112 |
const pattern = {
|
113 |
+
share : new RegExp("^https?:\\/\\/([0-9a-zA-Z-]+)\\.gradio\\.live\\/?"),
|
114 |
+
hugginFace : new RegExp("^https?:\\/\\/([a-zA-Z0-9-]+)-gradio\\.hf\\.space\\/?$")
|
115 |
}
|
116 |
|
117 |
if (!pattern.share.test(url) &&
|