mgokg commited on
Commit
65ab811
·
verified ·
1 Parent(s): 06f5d4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -19,8 +19,6 @@ def extract_text_from_pdf(file_path):
19
 
20
 
21
  def process_pdf(uploaded_file, prompt):
22
- if prompt:
23
- return "hallo"
24
  if uploaded_file is not None:
25
  # Extract text from uploaded PDF file
26
  pdf_text = extract_text_from_pdf(uploaded_file.name)
@@ -33,8 +31,7 @@ def process_pdf(uploaded_file, prompt):
33
  )
34
  print(pdf_text)
35
  outputs=pdf_text
36
-
37
- return pdf_text
38
 
39
  gr.Interface(
40
  fn=process_pdf,
 
19
 
20
 
21
  def process_pdf(uploaded_file, prompt):
 
 
22
  if uploaded_file is not None:
23
  # Extract text from uploaded PDF file
24
  pdf_text = extract_text_from_pdf(uploaded_file.name)
 
31
  )
32
  print(pdf_text)
33
  outputs=pdf_text
34
+ return pdf_text
 
35
 
36
  gr.Interface(
37
  fn=process_pdf,