Spaces:
Sleeping
Sleeping
Commit
·
f9a309c
1
Parent(s):
9b07b0d
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ if img_file_buffer is not None:
|
|
71 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
72 |
client = Client("https://rahulsinghpundir-facial-expression.hf.space/")
|
73 |
result = client.predict(
|
74 |
-
"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/
|
75 |
api_name="/predict"
|
76 |
)
|
77 |
if result == "happy":
|
|
|
71 |
cv2.putText(image,name,(x1+6,y2-6),cv2.FONT_HERSHEY_COMPLEX,1,(255, 255, 255),2)
|
72 |
client = Client("https://rahulsinghpundir-facial-expression.hf.space/")
|
73 |
result = client.predict(
|
74 |
+
"https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/image", # str (filepath or URL to image) in 'img' Image component
|
75 |
api_name="/predict"
|
76 |
)
|
77 |
if result == "happy":
|