ozzyable commited on
Commit
ad437c3
·
1 Parent(s): c3bf040
Files changed (1) hide show
  1. app.py +2 -2
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:{job_id}"
39
  status = "IN_QUEUE"
40
- while status == "IN_QUEUE":
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', '')