Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,7 @@ import gradio as gr
|
|
| 4 |
import os
|
| 5 |
|
| 6 |
# %% Connect to private MaskClassifier and set up API calls to get predictions
|
| 7 |
-
|
| 8 |
-
client = Client("maba11/MaskClassifier", hf_token=HF_TOKEN)
|
| 9 |
|
| 10 |
def predict_single_out(input):
|
| 11 |
api_result = client.predict(
|
|
|
|
| 4 |
import os
|
| 5 |
|
| 6 |
# %% Connect to private MaskClassifier and set up API calls to get predictions
|
| 7 |
+
client = Client("maba11/MaskClassifier", hf_token=os.environ.get("HF_TOKEN"))
|
|
|
|
| 8 |
|
| 9 |
def predict_single_out(input):
|
| 10 |
api_result = client.predict(
|