Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,12 @@ import numpy as np
|
|
| 4 |
from PIL import Image
|
| 5 |
import io
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Function to convert PIL image to OpenCV format
|
| 8 |
def pil_to_cv(image):
|
| 9 |
return cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
import io
|
| 6 |
|
| 7 |
+
|
| 8 |
+
title_and_description = """
|
| 9 |
+
# PDF to Word and Word to PDF converter
|
| 10 |
+
Created by [@pralayasimha](https://pralayasimha.in)
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
# Function to convert PIL image to OpenCV format
|
| 14 |
def pil_to_cv(image):
|
| 15 |
return cv2.cvtColor(np.array(image), cv2.COLOR_RGB2BGR)
|