Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| import pandas as pd | |
| # Title of the app | |
| st.title('OpenCLIP Model Results Viewer') | |
| # Displaying the specific CSV file if it exists in the app directory | |
| csv_file_path = 'openclip_results.csv' | |
| try: | |
| df = pd.read_csv(csv_file_path) | |
| # Display the dataframe | |
| st.write("### OpenCLIP Model Results") | |
| st.dataframe(df) | |
| # # Optionally, you could add some visualizations or summaries | |
| # st.write("### Summary Statistics") | |
| # st.write(df.describe()) | |
| # # If you want to create any specific plots | |
| # if st.checkbox("Show Plot"): | |
| # st.line_chart(df) | |
| except FileNotFoundError: | |
| st.error(f"File {csv_file_path} not found. Please ensure the file exists in the app directory.") |