Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def process_file(file):
|
|
35 |
if file_extension == 'pdf':
|
36 |
ocr_text = process_pdf(file)
|
37 |
result = mitteilung(ocr_text)
|
38 |
-
result= gr.Markdown(
|
39 |
return result
|
40 |
return ocr_text
|
41 |
|
@@ -46,7 +46,7 @@ def process_file(file):
|
|
46 |
text += paragraph.text + "\n"
|
47 |
|
48 |
result = mitteilung(text)
|
49 |
-
result= gr.Markdown(
|
50 |
return result
|
51 |
return text
|
52 |
#return [Document(text=text)]
|
|
|
35 |
if file_extension == 'pdf':
|
36 |
ocr_text = process_pdf(file)
|
37 |
result = mitteilung(ocr_text)
|
38 |
+
result= gr.Markdown(result)
|
39 |
return result
|
40 |
return ocr_text
|
41 |
|
|
|
46 |
text += paragraph.text + "\n"
|
47 |
|
48 |
result = mitteilung(text)
|
49 |
+
result= gr.Markdown(result)
|
50 |
return result
|
51 |
return text
|
52 |
#return [Document(text=text)]
|