Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -46,7 +46,7 @@ MODEL_OPTIONS = {
|
|
| 46 |
|
| 47 |
# ---------- Utility functions ----------
|
| 48 |
|
| 49 |
-
def read_file(uploaded_file
|
| 50 |
name = uploaded_file.name.lower()
|
| 51 |
if name.endswith(('.csv', '.txt')):
|
| 52 |
return pd.read_csv(uploaded_file)
|
|
|
|
| 46 |
|
| 47 |
# ---------- Utility functions ----------
|
| 48 |
|
| 49 |
+
def read_file(uploaded_file) -> pd.DataFrame:
|
| 50 |
name = uploaded_file.name.lower()
|
| 51 |
if name.endswith(('.csv', '.txt')):
|
| 52 |
return pd.read_csv(uploaded_file)
|