Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -0
src/streamlit_app.py
CHANGED
|
@@ -8,6 +8,14 @@ import time
|
|
| 8 |
from typing import Dict, Optional, List
|
| 9 |
import io
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# API Configuration
|
| 12 |
BASE_URL = "https://api.openalex.org"
|
| 13 |
RATE_LIMIT_DELAY = 0.15
|
|
|
|
| 8 |
from typing import Dict, Optional, List
|
| 9 |
import io
|
| 10 |
|
| 11 |
+
st.set_page_config(page_title="OpenAlex H-Index Lookup", page_icon="📚", layout="wide")
|
| 12 |
+
|
| 13 |
+
# Initialize session state to fix Hugging Face connection issues
|
| 14 |
+
if 'initialized' not in st.session_state:
|
| 15 |
+
st.session_state.initialized = True
|
| 16 |
+
st.rerun()
|
| 17 |
+
|
| 18 |
+
|
| 19 |
# API Configuration
|
| 20 |
BASE_URL = "https://api.openalex.org"
|
| 21 |
RATE_LIMIT_DELAY = 0.15
|