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