Upload webapp/src/main.ts with huggingface_hub
Browse files- webapp/src/main.ts +11 -0
webapp/src/main.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import './style.css'
|
| 2 |
+
|
| 3 |
+
import { mountApp } from './app'
|
| 4 |
+
|
| 5 |
+
const root = document.querySelector<HTMLDivElement>('#app')
|
| 6 |
+
|
| 7 |
+
if (!root) {
|
| 8 |
+
throw new Error('App root element was not found.')
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
mountApp(root)
|