File size: 604 Bytes
3878434
 
fa0d7e5
3878434
 
 
02ccd7f
1876526
 
 
16cc2de
e27811d
3878434
7bfffd0
b32380d
6753681
9319937
 
 
7f1e73f
9319937
a7a6c64
9cf4f46
 
 
 
a7a6c64
9cf4f46
 
 
 
 
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
import os
import re
import random
from http import HTTPStatus
from typing import Dict, List, Optional, Tuple
import base64
import anthropic
import openai
import asyncio
import time
from functools import partial
import json
import gradio as gr

import html
import urllib.parse
from huggingface_hub import HfApi, create_repo
import string
import random
import requests


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)