|
import streamlit as st |
|
import pandas as pd |
|
import os |
|
|
|
|
|
st.title('Multilingual retrieval OpenCLIP Model Results Viewer') |
|
st.write("Multilingual multimodal retrieval results from OpenCLIP.") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
csv_file_path = 'openclip_multilingual_retrieval_results.csv' |
|
|
|
try: |
|
|
|
df = pd.read_csv(csv_file_path) |
|
|
|
|
|
st.write("### OpenCLIP Model Results") |
|
st.dataframe(df) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
except FileNotFoundError: |
|
st.error(f"File {csv_file_path} not found. Please ensure the file exists in the app directory.") |
|
except pd.errors.EmptyDataError: |
|
st.error(f"The file {csv_file_path} is empty. Please check the content of your CSV file.") |
|
except pd.errors.ParserError: |
|
st.error(f"Unable to parse {csv_file_path}. Please ensure it's a valid CSV file.") |
|
except Exception as e: |
|
st.error(f"An unexpected error occurred: {str(e)}") |