mgokg commited on
Commit
6d1a446
·
verified ·
1 Parent(s): 723e467

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def process_pdf(uploaded_file, prompt):
27
  documents=[pdf_text],
28
  ids=[timestamp]
29
  )
30
- print(pdf_text)
31
  return pdf_text
32
 
33
 
@@ -43,6 +43,6 @@ with gr.Blocks() as demo:
43
  out = gr.Textbox()
44
  file_inp = gr.File(type="filepath", label="PDF-Datei hochladen"),
45
  btn = gr.Button("Run")
46
- btn.click(fn=suchen, inputs=inp, outputs=out)
47
 
48
  demo.launch()
 
27
  documents=[pdf_text],
28
  ids=[timestamp]
29
  )
30
+ #print(pdf_text)
31
  return pdf_text
32
 
33
 
 
43
  out = gr.Textbox()
44
  file_inp = gr.File(type="filepath", label="PDF-Datei hochladen"),
45
  btn = gr.Button("Run")
46
+ btn.click(fn=process_pdf, inputs=inp, outputs=out)
47
 
48
  demo.launch()