Cycle-Navigator / app.py
openfree's picture
Update app.py
32ad39d verified
raw
history blame
614 Bytes
# -------- 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)