Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ q = queue.Queue()
|
|
| 36 |
|
| 37 |
def chat():
|
| 38 |
global q
|
| 39 |
-
if
|
| 40 |
arr = q.get()
|
| 41 |
start = time.time()
|
| 42 |
result = gradio_client.predict(
|
|
|
|
| 36 |
|
| 37 |
def chat():
|
| 38 |
global q
|
| 39 |
+
if not q.empty():
|
| 40 |
arr = q.get()
|
| 41 |
start = time.time()
|
| 42 |
result = gradio_client.predict(
|