File size: 614 Bytes
adaea4d
7781d26
b7fd69b
adaea4d
b7fd69b
adaea4d
 
 
b7fd69b
 
adaea4d
32ad39d
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -------- app_final.py --------
import os, json, math, pathlib, re, time, logging, requests
from datetime import datetime, timedelta
import numpy as np
import pandas as pd
import plotly.graph_objects as go
import gradio as gr
import openai
import torch
from sentence_transformers import SentenceTransformer, util

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)