Spaces:
Sleeping
Sleeping
Update app.py
Browse files12345673 unmodified lines111213131415141516import osimport gradio as grfrom openai import OpenAIfrom prompts import MAIN_PROMPT # ✅ Updated Import to match new filename
# ✅ Ensure OpenAI API Key is Set (Use Secrets in Hugging Face)OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")3 unmodified lines
client = OpenAI(api_key=OPENAI_API_KEY)
# ✅ Load the main promptfrom main import MAIN_PROMPT
def respond(user_message, history): if not user_message: return "", historyapp.py+1-3