Davidsamuel101 commited on
Commit
c35c0c4
1 Parent(s): 5f269b3

Fix FILENAME

Browse files
Files changed (4) hide show
  1. README.md +2 -0
  2. Sample Document.md +22 -0
  3. __pycache__/app.cpython-38.pyc +0 -0
  4. app.py +2 -2
README.md CHANGED
@@ -10,3 +10,5 @@ pinned: false
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
13
+
14
+ To run the app locally run `gradio app.py`
Sample Document.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Sample Document Presentation
3
+ ============================
4
+
5
+
6
+ ---
7
+ # Group Members:
8
+
9
+
10
+ Stella Shania Mintara, David Samuel and Egivenia.
11
+
12
+ ---
13
+ # Case Problem
14
+
15
+
16
+ FreshMart is already well-established, they have enough resources to buy and own servers. They prefer to outsource the server management to another party so they don’t need to search and hire talents to run and manage the servers.
17
+
18
+ ---
19
+ # I. Data Source
20
+
21
+
22
+ The data source is obtained from Fresh Mart’s surveillance cameras. This data will be ingested in the ingestion layer using Apache Kafka.
__pycache__/app.cpython-38.pyc CHANGED
Binary files a/__pycache__/app.cpython-38.pyc and b/__pycache__/app.cpython-38.pyc differ
app.py CHANGED
@@ -53,9 +53,9 @@ def convert2markdown(generate_slides):
53
 
54
  def inference(document):
55
  global FILENAME
56
- print(document)
57
  doc = fitz.open(document)
58
- FILENAME = Path(doc.name).stem
 
59
  font_counts, styles = preprocess.get_font_info(doc, granularity=False)
60
  size_tag = preprocess.get_font_tags(font_counts, styles)
61
  texts = preprocess.assign_tags(doc, size_tag)
53
 
54
  def inference(document):
55
  global FILENAME
 
56
  doc = fitz.open(document)
57
+ FILENAME = document.name.split('/')[-1].split('.')[0]
58
+ print(f"FILENAME: {FILENAME}")
59
  font_counts, styles = preprocess.get_font_info(doc, granularity=False)
60
  size_tag = preprocess.get_font_tags(font_counts, styles)
61
  texts = preprocess.assign_tags(doc, size_tag)