Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -66,20 +66,11 @@ class Model:
|
|
66 |
|
67 |
|
68 |
uploaded_file = st.file_uploader("Choose a file")
|
|
|
|
|
|
|
69 |
if uploaded_file is not None:
|
70 |
-
#
|
71 |
-
bytes_data = uploaded_file.getvalue()
|
72 |
-
st.write(bytes_data)
|
73 |
-
|
74 |
-
# To convert to a string based IO:
|
75 |
-
stringio = StringIO(uploaded_file.getvalue().decode("utf-8"))
|
76 |
-
st.write(stringio)
|
77 |
-
|
78 |
-
# To read file as string:
|
79 |
-
string_data = stringio.read()
|
80 |
-
st.write(string_data)
|
81 |
-
|
82 |
-
# Can be used wherever a "file-like" object is accepted:
|
83 |
dataframe = pd.read_csv(uploaded_file)
|
84 |
st.write(dataframe)
|
85 |
|
|
|
66 |
|
67 |
|
68 |
uploaded_file = st.file_uploader("Choose a file")
|
69 |
+
mode = st.option('What kind of summary do you want?',
|
70 |
+
('Simple', 'Analytical'))
|
71 |
+
st.write('You selected: ' + mode + ' summary.')
|
72 |
if uploaded_file is not None:
|
73 |
+
#p = preProcess(uploaded_file, 'Comparison between two models')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
dataframe = pd.read_csv(uploaded_file)
|
75 |
st.write(dataframe)
|
76 |
|