eHemink commited on
Commit
3ba7fb6
·
1 Parent(s): 9cbc782

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -7,7 +7,9 @@ Original file is located at
7
  https://colab.research.google.com/drive/1zk7xuWSf7ii7zowOqNVLy0FwXYVHYE2V
8
  """
9
 
10
- # Imports
 
 
11
  import PyPDF2
12
  import re
13
  import transformers
@@ -16,7 +18,7 @@ from bark import SAMPLE_RATE, generate_audio, preload_models
16
  from scipy.io.wavfile import write as write_wav
17
  import gradio as gr
18
 
19
- # Code
20
  def abstract_to_audio(insert_pdf):
21
  # Extracting the abstract text from the article pdf
22
  def extract_abstract(pdf_file):
@@ -76,5 +78,5 @@ def abstract_to_audio(insert_pdf):
76
 
77
 
78
  my_app = gr.Interface(fn=abstract_to_audio, inputs='file', outputs='audio', title="PDF Abstract Summarizer",
79
- description="Extracts abstracts from PDFs and generates audio summaries.")
80
  my_app.launch()
 
7
  https://colab.research.google.com/drive/1zk7xuWSf7ii7zowOqNVLy0FwXYVHYE2V
8
  """
9
 
10
+ # https://huggingface.co/spaces/eHemink/assessment3_part2
11
+
12
+ # Here are the imports
13
  import PyPDF2
14
  import re
15
  import transformers
 
18
  from scipy.io.wavfile import write as write_wav
19
  import gradio as gr
20
 
21
+ # Here is the code
22
  def abstract_to_audio(insert_pdf):
23
  # Extracting the abstract text from the article pdf
24
  def extract_abstract(pdf_file):
 
78
 
79
 
80
  my_app = gr.Interface(fn=abstract_to_audio, inputs='file', outputs='audio', title="PDF Abstract Summarizer",
81
+ description="Extracts abstracts from PDFs and generates audio summaries. This app only accepts PDFs with abstracts.")
82
  my_app.launch()