Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,15 @@
|
|
1 |
import os
|
2 |
from threading import Thread
|
3 |
from typing import Iterator
|
|
|
|
|
|
|
|
|
|
|
4 |
|
|
|
|
|
|
|
5 |
import gradio as gr
|
6 |
import spaces
|
7 |
import torch
|
|
|
1 |
import os
|
2 |
from threading import Thread
|
3 |
from typing import Iterator
|
4 |
+
import os
|
5 |
+
from huggingface_hub import HfApi
|
6 |
+
|
7 |
+
# Retrieve the token
|
8 |
+
hf_token = os.getenv("HF_AUTH_TOKEN")
|
9 |
|
10 |
+
# Example: Using the token with Hugging Face Hub
|
11 |
+
api = HfApi()
|
12 |
+
api.whoami(token=hf_token)
|
13 |
import gradio as gr
|
14 |
import spaces
|
15 |
import torch
|