Spaces:
Sleeping
Sleeping
Fix HF_TOKEN auth for InferenceClient
Browse files
app.py
CHANGED
|
@@ -12,7 +12,8 @@ from huggingface_hub import InferenceClient
|
|
| 12 |
|
| 13 |
|
| 14 |
def create_app():
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
def process_turn(audio, screenshot):
|
| 18 |
if audio is None and screenshot is None:
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def create_app():
|
| 15 |
+
# Bruker HF_TOKEN som settes automatisk i HF Spaces
|
| 16 |
+
client = InferenceClient(token=os.environ.get("HF_TOKEN"))
|
| 17 |
|
| 18 |
def process_turn(audio, screenshot):
|
| 19 |
if audio is None and screenshot is None:
|