legacies commited on
Commit
0572ed4
·
1 Parent(s): 6f32f55

initial files

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -2,7 +2,7 @@ import cv2
2
  import matplotlib.pyplot as plt
3
  import numpy as np
4
  import streamlit as st
5
- #import pymongo
6
  import json
7
 
8
 
@@ -112,12 +112,10 @@ def main(det_archs, reco_archs):
112
  st.download_button(label="Download JSON", data=json.dumps(page_export), file_name="OCR.json", mime="application/json")
113
 
114
  # Connect to MongoDB
115
- #client = pymongo.MongoClient("mongodb://localhost:27017/")
116
- #db = client["OCRoutputs"]
117
- #collection = db["jsonDatas"]
118
 
119
  # Insert the JSON data
120
- # collection.insert_one(page_export)
121
 
122
 
123
  if __name__ == "__main__":
 
2
  import matplotlib.pyplot as plt
3
  import numpy as np
4
  import streamlit as st
5
+
6
  import json
7
 
8
 
 
112
  st.download_button(label="Download JSON", data=json.dumps(page_export), file_name="OCR.json", mime="application/json")
113
 
114
  # Connect to MongoDB
115
+
 
 
116
 
117
  # Insert the JSON data
118
+
119
 
120
 
121
  if __name__ == "__main__":