Spaces:
Runtime error
Runtime error
Commit
•
72a0488
1
Parent(s):
7e646c6
Update share_btn.py
Browse files- share_btn.py +2 -1
share_btn.py
CHANGED
@@ -11,8 +11,9 @@ loading_icon_html = """<svg id="share-btn-loading-icon" style="display:none;" cl
|
|
11 |
share_js = """async () => {
|
12 |
async function uploadFile(file){
|
13 |
const UPLOAD_URL = 'https://huggingface.co/uploads';
|
14 |
-
if(file.type == "")
|
15 |
file.type = "webp"
|
|
|
16 |
console.log(file.type)
|
17 |
const response = await fetch(UPLOAD_URL, {
|
18 |
method: 'POST',
|
|
|
11 |
share_js = """async () => {
|
12 |
async function uploadFile(file){
|
13 |
const UPLOAD_URL = 'https://huggingface.co/uploads';
|
14 |
+
if(file.type == ""){
|
15 |
file.type = "webp"
|
16 |
+
}
|
17 |
console.log(file.type)
|
18 |
const response = await fetch(UPLOAD_URL, {
|
19 |
method: 'POST',
|