Spaces:
Running
Running
Upload 3 files
Browse files- assets/index-E_M5nW8h.js +0 -0
- assets/index-SojaDS6z.css +1 -0
- index.html +4 -3
assets/index-E_M5nW8h.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
assets/index-SojaDS6z.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*{box-sizing:border-box;padding:0;margin:0;font-family:sans-serif}html,body{height:100%}body{padding:16px 32px}body,#container,#upload-button{display:flex;flex-direction:column;justify-content:center;align-items:center}h1,h4{text-align:center}h4{margin-top:.5rem}#container{position:relative;width:720px;height:480px;max-width:100%;max-height:100%;border:2px dashed #D1D5DB;border-radius:.75rem;overflow:hidden;margin-top:1rem;background-size:100% 100%;background-position:center;background-repeat:no-repeat}#upload-button{gap:.4rem;font-size:18px;cursor:pointer}#upload{display:none}svg{pointer-events:none}#example{font-size:14px;text-decoration:underline;cursor:pointer}#example:hover{color:#2563eb}canvas{position:absolute;width:100%;height:100%}#status{min-height:16px;margin:8px 0}
|
index.html
CHANGED
@@ -5,12 +5,13 @@
|
|
5 |
<meta charset="UTF-8" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Transformers.js - Background Removal</title>
|
8 |
-
<script type="module" crossorigin src="/assets/index-
|
9 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
10 |
</head>
|
11 |
|
12 |
<body>
|
13 |
-
<h1>Background Removal w/
|
|
|
14 |
<div id="container">
|
15 |
<label id="upload-button" for="upload">
|
16 |
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
5 |
<meta charset="UTF-8" />
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 |
<title>Transformers.js - Background Removal</title>
|
8 |
+
<script type="module" crossorigin src="/assets/index-E_M5nW8h.js"></script>
|
9 |
+
<link rel="stylesheet" crossorigin href="/assets/index-SojaDS6z.css">
|
10 |
</head>
|
11 |
|
12 |
<body>
|
13 |
+
<h1>Background Removal w/ <a href="http://github.com/xenova/transformers.js">🤗 Transformers.js</a></h1>
|
14 |
+
<h4>Powered by the <a href="https://huggingface.co/briaai/RMBG-1.4">RMBG V1.4 model</a> from <a href="https://bria.ai/">BRIA AI</a></h4>
|
15 |
<div id="container">
|
16 |
<label id="upload-button" for="upload">
|
17 |
<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|