mgokg commited on
Commit
f0be5df
·
verified ·
1 Parent(s): 96ff633

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -30,9 +30,15 @@ def process_pdf(uploaded_file, prompt):
30
  print(pdf_text)
31
  return pdf_text
32
 
 
 
 
 
 
33
  def main():
34
  gr.Interface(
35
- fn=process_pdf,
 
36
  inputs=[gr.File(type="filepath", label="PDF-Datei hochladen"),
37
  gr.Textbox(lines=2, placeholder="Stellen Sie eine Frage")],
38
  outputs="text",
 
30
  print(pdf_text)
31
  return pdf_text
32
 
33
+
34
+ def suchen():
35
+ print("hallo")
36
+ # Hier kannst du deine Suchfunktion implementieren return
37
+
38
  def main():
39
  gr.Interface(
40
+ fn=suchen,
41
+ #fn=process_pdf,
42
  inputs=[gr.File(type="filepath", label="PDF-Datei hochladen"),
43
  gr.Textbox(lines=2, placeholder="Stellen Sie eine Frage")],
44
  outputs="text",