Update app.py
Browse files252 unmodified lines25325425525625725825926067 unmodified lines328329330331332333252 unmodified linesreturn "✅ API key configured - Advanced AI ready"return "⚠️ API key not set - Template mode active"# Create Gradio interfacewith gr.Blocks(title="AI Pose Generator") as demo:keypoints_state = gr.State({})gr.Markdown("""67 unmodified linesoutputs=[pose_image, json_output, keypoints_state])# Launch the appif __name__ == "__main__":demo.launch()252 unmodified lines25325425525625725825926026126267 unmodified lines330331332333334335252 unmodified linesreturn "✅ API key configured - Advanced AI ready"return "⚠️ API key not set - Template mode active"# Create Gradio interface - IMPORTANT: Must be named 'app' for Hugging Face Spacesapp = gr.Blocks(title="AI Pose Generator")with app:keypoints_state = gr.State({})gr.Markdown("""67 unmodified linesoutputs=[pose_image, json_output, keypoints_state])# For Hugging Face Spacesapp.queue()app.launch()
app.py+7-5