| |
| def cosmic_ai(prompt): |
| """ |
| This function combines the meditative text and image generation. |
| It takes a text prompt as input and returns both the text output |
| and the generated image. |
| """ |
| |
| text_output = generate_meditative_text(prompt) |
| |
| image_output = generate_cosmic_image(prompt) |
| return text_output, image_output |
|
|
| |
| interface = gr.Interface( |
| fn=cosmic_ai, |
| inputs="text", |
| outputs=["text", "image"], |
| title="Cosmic Resonance AI", |
| description=( |
| "Enter a cosmic or meditative theme (e.g., 'Golden Ratio harmony' or 'Quantum fractals'). " |
| "The AI will generate a meditative text response and a cosmic visual." |
| ) |
| ) |
|
|
| |
| interface.launch() |
|
|