Spaces:
Sleeping
Sleeping
firqaaa
commited on
Commit
·
ba86db7
1
Parent(s):
90e750f
add 400 Bad Request Exception
Browse files
app.py
CHANGED
|
@@ -220,7 +220,20 @@ if uploaded_file:
|
|
| 220 |
'Outcomes' : concat['Outcome/Recommendation/Conclusion'][i].capitalize()
|
| 221 |
})
|
| 222 |
except Exception as e:
|
| 223 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 224 |
# # result = pd.DataFrame(L)
|
| 225 |
st.dataframe(pd.DataFrame(L))
|
| 226 |
# csv = convert_df(pd.DataFrame(L))
|
|
|
|
| 220 |
'Outcomes' : concat['Outcome/Recommendation/Conclusion'][i].capitalize()
|
| 221 |
})
|
| 222 |
except Exception as e:
|
| 223 |
+
L.append({
|
| 224 |
+
'Title' : concat['title'][0],
|
| 225 |
+
'Author' : concat['author'][0],
|
| 226 |
+
'Publisher' : concat['publisher'][0],
|
| 227 |
+
'Publication Year' : concat['publication_year'][0],
|
| 228 |
+
'Genes' : '',
|
| 229 |
+
'Population' : concat['population_race'][0],
|
| 230 |
+
'Phenotype' : concat['phenotypes_or_diseases'][i].title(),
|
| 231 |
+
'Sample Size' : concat['sample_size'][i],
|
| 232 |
+
'SNPs' : s,
|
| 233 |
+
'Study Methodology' : concat['Study_Methodology'][i],
|
| 234 |
+
'Study Level' : concat['Study_Level'][i].title(),
|
| 235 |
+
'Outcomes' : concat['Outcome/Recommendation/Conclusion'][i].capitalize()
|
| 236 |
+
})
|
| 237 |
# # result = pd.DataFrame(L)
|
| 238 |
st.dataframe(pd.DataFrame(L))
|
| 239 |
# csv = convert_df(pd.DataFrame(L))
|