Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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()
|