Spaces:
Sleeping
Sleeping
Pragya Jatav
commited on
Commit
·
c6d09a6
1
Parent(s):
f8a3177
m1
Browse files- Model_Result_Overview.py +14 -0
Model_Result_Overview.py
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import streamlit as st
|
| 3 |
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
|