Rohit commited on
Commit ·
264072c
1
Parent(s): 6ec2961
df
Browse files- app.py +5 -2
- requirements.txt +3 -1
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import os
|
|
| 2 |
from pymongo.mongo_client import MongoClient
|
| 3 |
import streamlit as st
|
| 4 |
from streamlit_option_menu import option_menu
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
|
|
@@ -35,8 +36,10 @@ def create_rem():
|
|
| 35 |
|
| 36 |
|
| 37 |
def view_rem():
|
| 38 |
-
allrem = col.find()
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
|
| 41 |
|
| 42 |
def main():
|
|
|
|
| 2 |
from pymongo.mongo_client import MongoClient
|
| 3 |
import streamlit as st
|
| 4 |
from streamlit_option_menu import option_menu
|
| 5 |
+
import pandas as pd
|
| 6 |
|
| 7 |
|
| 8 |
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
def view_rem():
|
| 39 |
+
allrem = list(col.find())
|
| 40 |
+
df = pd.DataFrame(allrem)
|
| 41 |
+
st.dataframe(df)
|
| 42 |
+
|
| 43 |
|
| 44 |
|
| 45 |
def main():
|
requirements.txt
CHANGED
|
@@ -2,4 +2,6 @@ pymongo
|
|
| 2 |
dnspython
|
| 3 |
streamlit
|
| 4 |
streamlit-option-menu
|
| 5 |
-
transformers[torch]
|
|
|
|
|
|
|
|
|
| 2 |
dnspython
|
| 3 |
streamlit
|
| 4 |
streamlit-option-menu
|
| 5 |
+
transformers[torch]
|
| 6 |
+
pandas
|
| 7 |
+
numpy
|