Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -15,7 +15,7 @@ is_ready = True
|
|
| 15 |
print("Model Started Successfully! ")
|
| 16 |
|
| 17 |
@app.get("/status/")
|
| 18 |
-
|
| 19 |
return {"msg": "The Model is Idle!"} if is_ready else {"msg": "The Model is Processing Some Input Now, Come On Later!"}
|
| 20 |
|
| 21 |
|
|
|
|
| 15 |
print("Model Started Successfully! ")
|
| 16 |
|
| 17 |
@app.get("/status/")
|
| 18 |
+
def status():
|
| 19 |
return {"msg": "The Model is Idle!"} if is_ready else {"msg": "The Model is Processing Some Input Now, Come On Later!"}
|
| 20 |
|
| 21 |
|