Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,14 @@ from PIL import Image
|
|
12 |
import gradio_client.utils
|
13 |
original_json_schema = gradio_client.utils._json_schema_to_python_type
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
import ast #추가 삽입, requirements: albumentations 추가
|
16 |
script_repr = os.getenv("APP")
|
17 |
if script_repr is None:
|
|
|
12 |
import gradio_client.utils
|
13 |
original_json_schema = gradio_client.utils._json_schema_to_python_type
|
14 |
|
15 |
+
from PIL import ImageOps, ExifTags
|
16 |
+
import sys
|
17 |
+
|
18 |
+
# --- [Optional Patch] ---------------------------------------------------------
|
19 |
+
# This patch fixes potential JSON schema parsing issues in Gradio/Gradio-Client.
|
20 |
+
import gradio_client.utils
|
21 |
+
original_json_schema = gradio_client.utils._json_schema_to_python_type
|
22 |
+
|
23 |
import ast #추가 삽입, requirements: albumentations 추가
|
24 |
script_repr = os.getenv("APP")
|
25 |
if script_repr is None:
|