Spaces:
Runtime error
Runtime error
Commit
·
ea6b6a0
1
Parent(s):
2cef665
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,12 @@ import numpy as np
|
|
| 3 |
import pandas as pd
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
-
|
| 7 |
series = st.text_input("Write the name of the variable you want to forecast")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
df = pd.read_csv(file)
|
| 10 |
st.dataframe(df)
|
|
|
|
| 3 |
import pandas as pd
|
| 4 |
import plotly.express as px
|
| 5 |
|
| 6 |
+
uploaded_files = st.file_uploader("Choose a CSV file", accept_multiple_files=True)
|
| 7 |
series = st.text_input("Write the name of the variable you want to forecast")
|
| 8 |
+
for uploaded_file in uploaded_files:
|
| 9 |
+
bytes_data = uploaded_file.read()
|
| 10 |
+
st.write("filename:", uploaded_file.name)
|
| 11 |
+
st.write(bytes_data)
|
| 12 |
|
| 13 |
+
df = pd.read_csv(file.name)
|
| 14 |
st.dataframe(df)
|