Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import requests
|
|
3 |
import pandas as pd
|
4 |
import re
|
5 |
import json
|
|
|
6 |
from datetime import datetime
|
7 |
from torch import cuda
|
8 |
|
@@ -33,6 +34,15 @@ from appStore.filter_utils import (
|
|
33 |
get_crs_options
|
34 |
)
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
st.set_page_config(page_title="SEARCH IATI", layout='wide')
|
37 |
|
38 |
|
|
|
3 |
import pandas as pd
|
4 |
import re
|
5 |
import json
|
6 |
+
import configparser
|
7 |
from datetime import datetime
|
8 |
from torch import cuda
|
9 |
|
|
|
34 |
get_crs_options
|
35 |
)
|
36 |
|
37 |
+
# Initialize the parser and read the configuration file
|
38 |
+
config = configparser.ConfigParser()
|
39 |
+
config.read('model_params.cfg')
|
40 |
+
|
41 |
+
# Retrieve model parameters from the "MODEL" section
|
42 |
+
DEDICATED_MODEL = config.get('MODEL', 'DEDICATED_MODEL')
|
43 |
+
DEDICATED_ENDPOINT = config.get('MODEL', 'DEDICATED_ENDPOINT')
|
44 |
+
WRITE_ACCESS_TOKEN = config.get('MODEL', 'WRITE_ACCESS_TOKEN')
|
45 |
+
|
46 |
st.set_page_config(page_title="SEARCH IATI", layout='wide')
|
47 |
|
48 |
|