Mouse2-HF / app.py
openfree's picture
Update app.py
9cf4f46 verified
raw
history blame contribute delete
604 Bytes
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)