File size: 1,104 Bytes
522b924
 
032cc3c
522b924
 
2079fd3
032cc3c
 
1907aa6
522b924
 
032cc3c
522b924
 
 
2079fd3
522b924
 
032cc3c
72ebb38
 
522b924
032cc3c
72ebb38
 
032cc3c
522b924
032cc3c
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
import streamlit as st
import pandas as pd
import os

# Title of the app
st.title('Multilingual retrieval Results Viewer')

# Specify the CSV file path
csv_file_path = 'openclip_multilingual_retrieval_results.csv'

try:
    # Attempt to read the CSV file
    df = pd.read_csv(csv_file_path)
    
    # Display the dataframe
    st.write("### Multilingual 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.")
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)}")