Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
#!/usr/bin/env python
|
2 |
-
|
3 |
import os
|
|
|
|
|
4 |
import re
|
5 |
import tempfile
|
6 |
import gc # Added garbage collector
|
|
|
7 |
from collections.abc import Iterator
|
8 |
from threading import Thread
|
9 |
import json
|
@@ -26,6 +28,13 @@ from transformers import AutoProcessor, Gemma3ForConditionalGeneration, TextIter
|
|
26 |
import pandas as pd
|
27 |
import PyPDF2
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
import ast #추가 삽입, requirements: albumentations 추가
|
30 |
script_repr = os.getenv("APP")
|
31 |
if script_repr is None:
|
|
|
1 |
#!/usr/bin/env python
|
|
|
2 |
import os
|
3 |
+
os.environ["GRADIO_ANALYTICS_ENABLED"] = "false"
|
4 |
+
|
5 |
import re
|
6 |
import tempfile
|
7 |
import gc # Added garbage collector
|
8 |
+
import sys
|
9 |
from collections.abc import Iterator
|
10 |
from threading import Thread
|
11 |
import json
|
|
|
28 |
import pandas as pd
|
29 |
import PyPDF2
|
30 |
|
31 |
+
# =============================================================================
|
32 |
+
# (New) Image API related functions
|
33 |
+
# =============================================================================
|
34 |
+
from gradio_client import Client
|
35 |
+
|
36 |
+
|
37 |
+
|
38 |
import ast #추가 삽입, requirements: albumentations 추가
|
39 |
script_repr = os.getenv("APP")
|
40 |
if script_repr is None:
|