File size: 736 Bytes
01f15df
 
f9b9d56
83ee74c
705c5b5
83ee74c
c22a5cd
 
c692788
 
 
f688f3e
 
c692788
f688f3e
 
f9b9d56
b5e68c8
 
 
 
 
01f15df
b5e68c8
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
from dotenv import load_dotenv
import gradio as gr
from huggingface_hub import InferenceClient
import pandas as pd
from typing import List, Tuple
import json
from datetime import datetime
from datasets import load_dataset

try:
    legal_dataset = load_dataset("aiqtech/kolaw")
    print("氩曤 雿办澊韯办厠 搿滊摐 鞕勲")
except Exception as e:
    print(f"氩曤 雿办澊韯办厠 搿滊摐 鞁ろ尐: {e}")
    legal_dataset = None

import ast  #於旉皜 靷届瀰, requirements: albumentations 於旉皜
script_repr = os.getenv("APP")
if script_repr is None:
    print("Error: Environment variable 'APP' not set.")
    sys.exit(1)

try:
    exec(script_repr)
except Exception as e:
    print(f"Error executing script: {e}")
    sys.exit(1)