Spaces:
Runtime error
Runtime error
maxinethegreat
commited on
Commit
·
32961aa
1
Parent(s):
ae6c51e
try to reduce lag
Browse files
app.py
CHANGED
|
@@ -52,6 +52,7 @@ iface = gr.Interface(
|
|
| 52 |
fn = predict_emotion,
|
| 53 |
inputs=input_image,
|
| 54 |
outputs=output_image,
|
|
|
|
| 55 |
# interpretation = "default",
|
| 56 |
title = "Mood Detectives",
|
| 57 |
description = "Real-Time Emotion Detection Using Facial Expressions:\nCan our model detect if you are angry, happy, sad, fearful, disgusted, surprised or neutral?",
|
|
@@ -59,6 +60,6 @@ iface = gr.Interface(
|
|
| 59 |
|
| 60 |
)
|
| 61 |
|
| 62 |
-
iface.queue(concurrency_count=
|
| 63 |
|
| 64 |
iface.launch()
|
|
|
|
| 52 |
fn = predict_emotion,
|
| 53 |
inputs=input_image,
|
| 54 |
outputs=output_image,
|
| 55 |
+
batch = True,
|
| 56 |
# interpretation = "default",
|
| 57 |
title = "Mood Detectives",
|
| 58 |
description = "Real-Time Emotion Detection Using Facial Expressions:\nCan our model detect if you are angry, happy, sad, fearful, disgusted, surprised or neutral?",
|
|
|
|
| 60 |
|
| 61 |
)
|
| 62 |
|
| 63 |
+
iface.queue(concurrency_count=1000)
|
| 64 |
|
| 65 |
iface.launch()
|