File size: 621 Bytes
7411847
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# app.py
import streamlit as st
import glob
import os
from datetime import datetime

st.set_page_config(layout="wide")
st.title('Meta Open LLM leaderboard')

data_path = './data/20230820_0354/'

# Extracting date and time information from the path
date_str = data_path.split('/')[-2]
parsed_date = datetime.strptime(date_str, "%Y%m%d_%H%M")

# Formatting the parsed date
formatted_date = parsed_date.strftime("%b %d, %Y %H:%M")

st.subheader("Generated on: " + formatted_date)
imgs = glob.glob(os.path.join(data_path, '*.png'))

cols = st.columns(2)

for i, img in enumerate(imgs):
    cols[i % 2].image(img, width=None)