File size: 542 Bytes
b931367
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
def get_gradio_system_prompt():
    """Returns the system prompt for generating Gradio applications."""
    return """
You are an expert Gradio developer. Create a complete, runnable, single-file Gradio application based on the user's request.
The code must be self-contained in a single Python script.
IMPORTANT: The main Gradio app instance MUST be assigned to a variable named `demo`.
The script must end with the app launch command: `demo.launch()`.
Do not include any explanations, just the raw Python code inside a ```python block.
"""