Spaces:
Sleeping
Sleeping
notbulubula
commited on
Commit
·
a5d8b59
0
Parent(s):
Initial comit
Browse files- app.py +27 -0
- requirements.txt +48 -0
app.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import wandb
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
# Initialize W&B API
|
| 6 |
+
api = wandb.Api()
|
| 7 |
+
|
| 8 |
+
# Replace with your W&B entity and project name
|
| 9 |
+
entity = "urbaniak-bruno-safescanai"
|
| 10 |
+
project = "pytorch-intro"
|
| 11 |
+
|
| 12 |
+
# Fetch all runs from the project
|
| 13 |
+
runs = api.runs(f"{entity}/{project}")
|
| 14 |
+
|
| 15 |
+
# Select a specific run (or create a dropdown for the user to select)
|
| 16 |
+
run = runs[0] # Example: selecting the first run
|
| 17 |
+
|
| 18 |
+
# Fetch the run data as a pandas DataFrame
|
| 19 |
+
run_df = run.history()
|
| 20 |
+
|
| 21 |
+
# Streamlit UI
|
| 22 |
+
st.title("W&B Data in Streamlit")
|
| 23 |
+
st.write(f"Displaying data for run: {run.name}")
|
| 24 |
+
st.dataframe(run_df)
|
| 25 |
+
|
| 26 |
+
# Example: Plotting a graph from the data
|
| 27 |
+
st.line_chart(run_df[['epoch', 'accuracy']]) # Replace with appropriate columns
|
requirements.txt
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
altair==5.3.0
|
| 2 |
+
attrs==24.2.0
|
| 3 |
+
blinker==1.8.2
|
| 4 |
+
cachetools==5.4.0
|
| 5 |
+
certifi==2024.7.4
|
| 6 |
+
charset-normalizer==3.3.2
|
| 7 |
+
click==8.1.7
|
| 8 |
+
docker-pycreds==0.4.0
|
| 9 |
+
gitdb==4.0.11
|
| 10 |
+
GitPython==3.1.43
|
| 11 |
+
idna==3.7
|
| 12 |
+
Jinja2==3.1.4
|
| 13 |
+
jsonschema==4.23.0
|
| 14 |
+
jsonschema-specifications==2023.12.1
|
| 15 |
+
markdown-it-py==3.0.0
|
| 16 |
+
MarkupSafe==2.1.5
|
| 17 |
+
mdurl==0.1.2
|
| 18 |
+
numpy==2.0.1
|
| 19 |
+
packaging==24.1
|
| 20 |
+
pandas==2.2.2
|
| 21 |
+
pillow==10.4.0
|
| 22 |
+
platformdirs==4.2.2
|
| 23 |
+
protobuf==5.27.3
|
| 24 |
+
psutil==6.0.0
|
| 25 |
+
pyarrow==17.0.0
|
| 26 |
+
pydeck==0.9.1
|
| 27 |
+
Pygments==2.18.0
|
| 28 |
+
python-dateutil==2.9.0.post0
|
| 29 |
+
pytz==2024.1
|
| 30 |
+
PyYAML==6.0.2
|
| 31 |
+
referencing==0.35.1
|
| 32 |
+
requests==2.32.3
|
| 33 |
+
rich==13.7.1
|
| 34 |
+
rpds-py==0.20.0
|
| 35 |
+
sentry-sdk==2.12.0
|
| 36 |
+
setproctitle==1.3.3
|
| 37 |
+
six==1.16.0
|
| 38 |
+
smmap==5.0.1
|
| 39 |
+
streamlit==1.37.1
|
| 40 |
+
tenacity==8.5.0
|
| 41 |
+
toml==0.10.2
|
| 42 |
+
toolz==0.12.1
|
| 43 |
+
tornado==6.4.1
|
| 44 |
+
typing_extensions==4.12.2
|
| 45 |
+
tzdata==2024.1
|
| 46 |
+
urllib3==2.2.2
|
| 47 |
+
wandb==0.17.6
|
| 48 |
+
watchdog==4.0.1
|