Alioth86 commited on
Commit
05baaca
1 Parent(s): c2b55f1

Add application file

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,11 +1,11 @@
1
- #the app is available in my Space at link:
2
  # https://huggingface.co/spaces/Alioth86/SpeechAbstractor
3
- #Please, consider that I have recombined the function I created for the part 1
4
- #and I have added a main function to join them (created with the support of ChatGPT-4)
5
- #moreover, I have created the input/output part and the titles and the description
6
- #and all the gradio features according to the Gradio website.
7
  #Please note that I have uploaded it all through git and git LFS.
8
 
 
9
  import PyPDF2
10
  import pdfplumber
11
  from pdfminer.high_level import extract_pages, extract_text
@@ -24,6 +24,7 @@ import os
24
  import tempfile
25
  import gradio as gr
26
 
 
27
  title="SpeechAbstractor"
28
 
29
  description = """
@@ -89,7 +90,7 @@ def read_pdf(pdf_pathy):
89
 
90
 
91
  def clean_text(text):
92
- # remove extra spaces
93
  text = re.sub(r'\s+', ' ', text)
94
 
95
  return text.strip()
 
 
1
  # https://huggingface.co/spaces/Alioth86/SpeechAbstractor
2
+ #Please, consider that I have recombined the function I created for the part 1 of assessment
3
+ #I have added a main function to connect them (for this main function I got some help from ChatGPT-4)
4
+ #I have created the input/output parts and the titles and the description
5
+ #and all the gradio features according to the Gradio website instructions.
6
  #Please note that I have uploaded it all through git and git LFS.
7
 
8
+ #Here are the imports
9
  import PyPDF2
10
  import pdfplumber
11
  from pdfminer.high_level import extract_pages, extract_text
 
24
  import tempfile
25
  import gradio as gr
26
 
27
+ #Here is the code
28
  title="SpeechAbstractor"
29
 
30
  description = """
 
90
 
91
 
92
  def clean_text(text):
93
+
94
  text = re.sub(r'\s+', ' ', text)
95
 
96
  return text.strip()