TimWindecker commited on
Commit
b07e01e
·
verified ·
1 Parent(s): ed767be

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -1
src/streamlit_app.py CHANGED
@@ -1,6 +1,7 @@
1
  from src.score_calculation.score import score_predictions
2
  import ast
3
  from datasets import load_dataset
 
4
  import multiprocessing
5
  import numpy as np
6
  import streamlit as st
@@ -133,7 +134,7 @@ def calculate_score(results_df):
133
  # Calculate score
134
  return score_predictions(results_df, dataset)
135
  except Exception as e:
136
- st.error(f"Error calculating score: {str(e)}")
137
  return None
138
 
139
  def validate_tsv_format(uploaded_file):
 
1
  from src.score_calculation.score import score_predictions
2
  import ast
3
  from datasets import load_dataset
4
+ from huggingface_hub import login
5
  import multiprocessing
6
  import numpy as np
7
  import streamlit as st
 
134
  # Calculate score
135
  return score_predictions(results_df, dataset)
136
  except Exception as e:
137
+ st.error(f"Error calculating score: {str(e)}") # TODO
138
  return None
139
 
140
  def validate_tsv_format(uploaded_file):