Spaces:
Sleeping
Sleeping
Pragya Jatav
commited on
Commit
·
324f78a
1
Parent(s):
c6d09a6
m1
Browse files- Model_Result_Overview.py +14 -14
- enviroment.yml +11 -0
Model_Result_Overview.py
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
import subprocess
|
2 |
-
import sys
|
3 |
-
|
4 |
-
def install_conda_package(package_name, channel=None):
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
# Example usage
|
14 |
-
install_conda_package("plotly-orca", channel="plotly")
|
15 |
|
16 |
import streamlit as st
|
17 |
import pandas as pd
|
|
|
1 |
+
# import subprocess
|
2 |
+
# import sys
|
3 |
+
|
4 |
+
# def install_conda_package(package_name, channel=None):
|
5 |
+
# try:
|
6 |
+
# if channel:
|
7 |
+
# subprocess.check_call([sys.executable, "-m", "conda", "install", "-c", channel, package_name, "-y"])
|
8 |
+
# else:
|
9 |
+
# subprocess.check_call([sys.executable, "-m", "conda", "install", package_name, "-y"])
|
10 |
+
# except subprocess.CalledProcessError as e:
|
11 |
+
# print(f"Failed to install {package_name}: {e}")
|
12 |
+
|
13 |
+
# # Example usage
|
14 |
+
# install_conda_package("plotly-orca", channel="plotly")
|
15 |
|
16 |
import streamlit as st
|
17 |
import pandas as pd
|
enviroment.yml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: myenv
|
2 |
+
channels:
|
3 |
+
- conda-forge
|
4 |
+
- plotly
|
5 |
+
dependencies:
|
6 |
+
- python=3.8
|
7 |
+
- plotly
|
8 |
+
- plotly-orca
|
9 |
+
- pip
|
10 |
+
- pip:
|
11 |
+
- -r requirements.txt
|