Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,22 @@
|
|
| 1 |
-
# -*- coding: utf-8 -*-
|
| 2 |
-
"""aai_pdf_zusammenfassung_Version_rohfassung v2 angepasst.ipynb
|
| 3 |
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
https://colab.research.google.com/drive/1vu_OZyE0h-zyHsxB3vgVQBJpiEZV-yE3
|
| 8 |
-
"""
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
| 11 |
import gradio as gr
|
| 12 |
|
| 13 |
import numpy as np
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Create a function to extract text
|
| 16 |
|
| 17 |
def text_extraction(element):
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
# https://huggingface.co/spaces/Mi-Ni/PDFtoAudio
|
| 3 |
|
| 4 |
+
# Unfortunately I wasn´t able to create a running space. I couldn´t adapt my code to create a running app in a huggingface space. After solving a lot of issues I ended up with a problem I wasn´t able to solve. Nevertheless, you´ll find my code below. Sorry that
|
|
|
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
+
#here are the imports: other imports and modules see in requirements
|
| 8 |
+
|
| 9 |
import gradio as gr
|
| 10 |
|
| 11 |
import numpy as np
|
| 12 |
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
#here is the code
|
| 18 |
+
|
| 19 |
+
|
| 20 |
# Create a function to extract text
|
| 21 |
|
| 22 |
def text_extraction(element):
|