ilytka / app.py
ginipick's picture
Update app.py
df2ed54 verified
raw
history blame contribute delete
371 Bytes
import gradio as gr
import numpy as np
import io
import os
import tempfile
from gtts import gTTS
from IPython.display import Audio
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)