Spaces:
Runtime error
Runtime error
Finished
Browse files
app.py
CHANGED
@@ -35,9 +35,9 @@ if st.button("Submit New Transactions"):
|
|
35 |
st.write(f"New Job ID: {job_id}")
|
36 |
|
37 |
# Keep checking status until it's no longer 'IN_QUEUE'
|
38 |
-
status_url = f"https://api.runpod.ai/v2/0wnm75vx5o77s1/status
|
39 |
status = "IN_QUEUE"
|
40 |
-
while status
|
41 |
status_response = requests.get(status_url, headers=headers)
|
42 |
status_data = status_response.json()
|
43 |
status = status_data.get('status', '')
|
|
|
35 |
st.write(f"New Job ID: {job_id}")
|
36 |
|
37 |
# Keep checking status until it's no longer 'IN_QUEUE'
|
38 |
+
status_url = f"https://api.runpod.ai/v2/0wnm75vx5o77s1/status/{job_id}"
|
39 |
status = "IN_QUEUE"
|
40 |
+
while status != "COMPLETED":
|
41 |
status_response = requests.get(status_url, headers=headers)
|
42 |
status_data = status_response.json()
|
43 |
status = status_data.get('status', '')
|