File size: 1,464 Bytes
4bb77ff
 
 
 
 
 
 
1df16d0
4bb77ff
a7d8fec
4bb77ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f32dbd6
e714f1c
d095d30
 
 
 
 
e714f1c
 
d095d30
e714f1c
d095d30
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import streamlit as st
st.set_page_config(
    page_title="IlΓΊvatar: Creative Design & Invention AI",
    layout="wide"
)
import pandas as pd

import os
import json
import re
import logging
import requests
import markdown
import time
import io
import random
import hashlib
from datetime import datetime
from dataclasses import dataclass
from itertools import combinations, product
from typing import Iterator

import PyPDF2                       # For handling PDF files
from collections import Counter

from openai import OpenAI, APIError, APITimeoutError
from gradio_client import Client
from kaggle.api.kaggle_api_extended import KaggleApi
import tempfile
import glob
import shutil

# ─── Additional libraries (must not be removed) ───────────────────────
import pyarrow.parquet as pq
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity

# ─── Network stability libraries ──────────────────────────────────────
import httpx
from httpx import RemoteProtocolError


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)