Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import streamlit as st
|
|
| 2 |
import requests
|
| 3 |
import pandas as pd
|
| 4 |
from datetime import datetime
|
|
|
|
| 5 |
|
| 6 |
# Hard-coded API key for demonstration purposes
|
| 7 |
API_KEY = "QR8F9B7T6R2SWTAT"
|
|
@@ -41,7 +42,7 @@ def main():
|
|
| 41 |
st.write(df)
|
| 42 |
|
| 43 |
# Add a delay to avoid exceeding API rate limits
|
| 44 |
-
|
| 45 |
|
| 46 |
if __name__ == "__main__":
|
| 47 |
main()
|
|
|
|
| 2 |
import requests
|
| 3 |
import pandas as pd
|
| 4 |
from datetime import datetime
|
| 5 |
+
import time
|
| 6 |
|
| 7 |
# Hard-coded API key for demonstration purposes
|
| 8 |
API_KEY = "QR8F9B7T6R2SWTAT"
|
|
|
|
| 42 |
st.write(df)
|
| 43 |
|
| 44 |
# Add a delay to avoid exceeding API rate limits
|
| 45 |
+
time.sleep(60) # Sleep for 60 seconds (adjust as needed)
|
| 46 |
|
| 47 |
if __name__ == "__main__":
|
| 48 |
main()
|