Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
b00b9a2
1
Parent(s):
3824e7f
fix
Browse files
src/app/interface/hf-login/index.tsx
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
"use client"
|
2 |
-
|
3 |
-
import { useCurrentUser } from "@/app/state/userCurrentUser"
|
4 |
-
import { Button } from "@/components/ui/button"
|
5 |
-
|
6 |
-
export function HuggingFaceLogin() {
|
7 |
-
|
8 |
-
const { user, login } = useCurrentUser()
|
9 |
-
|
10 |
-
// feature is not finished yet
|
11 |
-
if (!user?.userName || user?.userName !== "jbilcke-hf") { return }
|
12 |
-
|
13 |
-
return (
|
14 |
-
<div><Button onClick={login}>Sign in with Hugging Face</Button></div>
|
15 |
-
)
|
16 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|