Spaces:
Sleeping
Sleeping
Afifa Kureshi commited on
Commit ·
4f7dce6
1
Parent(s): 441f170
Fix container keep-alive for Spaces
Browse files- inference.py +8 -8
inference.py
CHANGED
|
@@ -89,14 +89,14 @@ finally:
|
|
| 89 |
rewards_str = "0.00"
|
| 90 |
|
| 91 |
print(
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
# Keep container alive for
|
| 100 |
import time
|
| 101 |
|
| 102 |
while True:
|
|
|
|
| 89 |
rewards_str = "0.00"
|
| 90 |
|
| 91 |
print(
|
| 92 |
+
"[END] "
|
| 93 |
+
f"success={str(success).lower()} "
|
| 94 |
+
f"steps={len(rewards)} "
|
| 95 |
+
f"score={score:.2f} "
|
| 96 |
+
f"rewards={rewards_str}"
|
| 97 |
+
)
|
| 98 |
+
|
| 99 |
+
# Keep container alive (required for Hugging Face Spaces)
|
| 100 |
import time
|
| 101 |
|
| 102 |
while True:
|