Spaces:
Sleeping
Sleeping
Commit
•
2909903
1
Parent(s):
98e159e
Update share_btn.py
Browse files- share_btn.py +1 -0
share_btn.py
CHANGED
@@ -10,6 +10,7 @@ loading_icon_html = """<svg id="share-btn-loading-icon" style="display:none;" cl
|
|
10 |
|
11 |
share_js = """async () => {
|
12 |
async function uploadFile(file){
|
|
|
13 |
const UPLOAD_URL = 'https://huggingface.co/uploads';
|
14 |
const response = await fetch(UPLOAD_URL, {
|
15 |
method: 'POST',
|
|
|
10 |
|
11 |
share_js = """async () => {
|
12 |
async function uploadFile(file){
|
13 |
+
console.log(file.type)
|
14 |
const UPLOAD_URL = 'https://huggingface.co/uploads';
|
15 |
const response = await fetch(UPLOAD_URL, {
|
16 |
method: 'POST',
|