import gradio as gr import random from datetime import datetime # Complete Tarot Card Dictionary tarot_cards = { "âĻ The Fool âĻ": { "meaning": "New beginnings, innocence, spontaneity", "description": "ð A fresh start awaits! Take that leap of faith with an open heart.", "image": "fool.jpg" }, "ðŊ The Magician ðŊ": { "meaning": "Manifestation, resourcefulness, power", "description": "⥠You have all tools to manifest your desires. Trust your abilities!", "image": "magician.jpg" }, "ð The High Priestess ð": { "meaning": "Intuition, mystery, inner wisdom", "description": "ð Listen to your inner voice. Deep wisdom lies within.", "image": "priestess.jpg" }, "ðš The Empress ðš": { "meaning": "Abundance, nurturing, fertility", "description": "ðļ Embrace your creative power and nurture growth.", "image": "empress.jpg" }, "âïļ The Emperor âïļ": { "meaning": "Authority, structure, leadership", "description": "ð Time to take charge and establish order.", "image": "emperor.jpg" }, "ðïļ The Hierophant ðïļ": { "meaning": "Tradition, spirituality, guidance", "description": "ð Seek wisdom from traditional sources and mentors.", "image": "hierophant.jpg" }, "âĪïļ The Lovers âĪïļ": { "meaning": "Love, harmony, relationships", "description": "ð Important choices about relationships await.", "image": "lovers.jpg" }, "ð The Chariot ð": { "meaning": "Victory, willpower, determination", "description": "ðŊ Success through determination and self-control.", "image": "chariot.jpg" }, "ðĶ Strength ðĶ": { "meaning": "Courage, patience, inner strength", "description": "ðŠ Overcome challenges through inner power.", "image": "strength.jpg" }, "ðŪ The Hermit ðŪ": { "meaning": "Introspection, searching, guidance", "description": "ð Time for inner reflection and spiritual search.", "image": "hermit.jpg" }, "ðĄ Wheel of Fortune ðĄ": { "meaning": "Destiny, cycles, turning point", "description": "ð Change is coming. Fortune favors the prepared.", "image": "wheel.jpg" }, "âïļ Justice âïļ": { "meaning": "Justice, fairness, truth", "description": "ð Truth and karma will prevail.", "image": "justice.jpg" }, "ð The Hanged Man ð": { "meaning": "Surrender, letting go, new perspective", "description": "ð See things from a different angle.", "image": "hanged.jpg" }, "ðĶ Death ðĶ": { "meaning": "Transformation, endings, change", "description": "ð End of one chapter, beginning of another.", "image": "death.jpg" }, "ð Temperance ð": { "meaning": "Balance, moderation, harmony", "description": "âŊïļ Find middle ground and inner peace.", "image": "temperance.jpg" }, "ð The Devil ð": { "meaning": "Bondage, materialism, temptation", "description": "âïļ Break free from what binds you.", "image": "devil.jpg" }, "⥠The Tower âĄ": { "meaning": "Sudden change, chaos, revelation", "description": "ðĨ Dramatic change leads to breakthrough.", "image": "tower.jpg" }, "â The Star â": { "meaning": "Hope, inspiration, serenity", "description": "âĻ Light shines in the darkness.", "image": "star.jpg" }, "ð The Moon ð": { "meaning": "Illusion, intuition, dreams", "description": "ð Trust your intuition in uncertain times.", "image": "moon.jpg" }, "âïļ The Sun âïļ": { "meaning": "Joy, success, vitality", "description": "ð Positivity and success shine bright.", "image": "sun.jpg" }, "ðŊ Judgement ðŊ": { "meaning": "Rebirth, inner calling, absolution", "description": "ð Answer the call to higher purpose.", "image": "judgement.jpg" }, "ð The World ð": { "meaning": "Completion, achievement, integration", "description": "ð A cycle completes, bringing fulfillment.", "image": "world.jpg" } } def get_reading(question, selected_cards): if not selected_cards: return "â ïļ Please select at least one card for your reading." result = f""" ðŪ YOUR MYSTICAL TAROT READING ðŪ ðŦ Question: {question} â§ï―Ĩïū: *â§ï―Ĩïū:* *:ï―Ĩïūâ§*:ï―Ĩïū⧠""" for i, card in enumerate(selected_cards, 1): card_info = tarot_cards[card] result += f""" âĻ Card {i}: {card} ðī Meaning: {card_info['meaning']} ð Message: {card_info['description']} â°â°â°â°â°â°â°â°â°â°â """ return result + "\n\nð May these insights guide your path! ð" # ... (ėīė tarot_cards ëė ëëĶŽė get_reading íĻėë ëėž) with gr.Blocks( theme=gr.themes.Soft( primary_hue="purple", secondary_hue="pink", neutral_hue="slate", font=["Arial", "sans-serif"] ), css=""" .gradio-container { background: linear-gradient(to right, #1a1a2e, #16213e); color: white; } .gr-button { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); border: none; color: white; } .gr-input { border: 2px solid #ff6b6b; } .gr-box { border-radius: 15px; border: 2px solid #ff6b6b; } .gr-padded { padding: 20px; } """ ) as demo: gr.HTML("""