Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
from huggingface_hub import InferenceClient
|
| 2 |
-
import gradio as gr
|
| 3 |
-
|
| 4 |
-
MODEL_ID = "Sohan2004/StressDetection_V1"
|
| 5 |
-
client = InferenceClient(model=MODEL_ID) # add token=... if private
|
| 6 |
-
|
| 7 |
-
def predict(img):
|
| 8 |
-
# use the correct client method for your task; e.g. image-classification:
|
| 9 |
-
out = client.image_classification(img)
|
| 10 |
-
return out
|
| 11 |
-
|
| 12 |
-
gr.Interface(predict, gr.Image(type="pil"), gr.JSON()).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|