KarthickAdopleAI commited on
Commit
0bf7883
1 Parent(s): 2fbb473

Update incompletesentencefinder.py

Browse files
Files changed (1) hide show
  1. incompletesentencefinder.py +2 -1
incompletesentencefinder.py CHANGED
@@ -1,6 +1,7 @@
1
  from PyPDF2 import PdfReader
2
  from openai import AzureOpenAI
3
  import gradio as gr
 
4
 
5
  class IncompleteSentenceFinder:
6
  """
@@ -55,7 +56,7 @@ class IncompleteSentenceFinder:
55
  response = chat_completion.choices[0].message.content
56
  return response
57
 
58
- def get_incomplete_sentence(self,pdf_file) -> str:
59
 
60
  """
61
  Extract text from the PDF document and find incomplete sentences.
 
1
  from PyPDF2 import PdfReader
2
  from openai import AzureOpenAI
3
  import gradio as gr
4
+ import os
5
 
6
  class IncompleteSentenceFinder:
7
  """
 
56
  response = chat_completion.choices[0].message.content
57
  return response
58
 
59
+ def get_incomplete_sentence(self,pdf_file_path) -> str:
60
 
61
  """
62
  Extract text from the PDF document and find incomplete sentences.