Spaces:
Sleeping
Sleeping
swaraj shinde commited on
Commit ·
03f0f22
1
Parent(s): 1e718a9
test_4
Browse files
model_interface/a_9_harvest_forecasting.py
CHANGED
|
@@ -1,9 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
|
|
|
| 4 |
from datetime import datetime, timedelta
|
| 5 |
from model_interface.hf_model_store import get_artifact_path
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Load model and encoder
|
| 9 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
+
import os
|
| 5 |
from datetime import datetime, timedelta
|
| 6 |
from model_interface.hf_model_store import get_artifact_path
|
| 7 |
|
| 8 |
+
# Set environment variable to avoid OpenMP issues
|
| 9 |
+
os.environ['OMP_NUM_THREADS'] = '1'
|
| 10 |
+
|
| 11 |
|
| 12 |
# Load model and encoder
|
| 13 |
|