Spaces:
Running
Running
Upload app.py
Browse files5 unmodified lines6789101112131415161791011352 unmodified lines3643653663763773783793803813823833843853863873883893903913923673683693703713723733743753765 unmodified lines
# --- BEI Premium Theme & Horizontal Interface Custom Engine ---custom_css = """/* Force images to be left-aligned and hide the Gradio toolbar/buttons */.no-toolbar .image-container { display: block !important; margin-left: 0 !important; margin-right: auto !important; }.no-toolbar .image-container button { display: none !important; }/* Completely hide technical loading bars & indicators */.subpanel.loading, .generating, div[class*="loading"], .progress-wrap { display: none !important;352 unmodified lines # API Verification Guideline Box with gr.Accordion("🔑 API Key Setup Instructions", open=True): gr.HTML(""" <ol style="color: #9ca3af; line-height: 1.8;"> <li>Visit <a href="https://aistudio.google.com/" style="color: #d4af37;">Google AI Studio</a>.</li> <li>Click the 'Get API Key' icon in the left-hand sidebar menu:</li> <img src="file/api_sidebar_icons.png" style="width: 250px; margin: 10px 0;"> <li>On the next screen, click the <b>Copy</b> button next to your API key:</li> <img src="file/google_ai_studio_copy_API_key_icon.png" style="width: 80px; margin: 10px 0;"> <li>Come back to this screen, and paste your API key below (CTRL + V):</li> <img src="file/down_arrow_Shorashim_Pro.png" style="width: 80px; margin: 10px 0;"> </ol> <p style="color: #9ca3af; margin-top: 10px;"> Click <a href='https://youtu.be/Uyn-P2nRvDA?si=LQi2U0tLsY-zE7a9' target='_blank' style='color: #d4af37; font-weight: bold; text-decoration: underline;'>here</a> to view a short how-to video. </p> """)href='https://youtu.be/Uyn-P2nRvDA?si=LQi2U0tLsY-zE7a9' target='_blank' style='color: #d4af37; font-weight: bold; text-decoration: underline;'>here</a> to view a short how-to video. """) gr.Markdown( "1. Visit [Google AI Studio](https://aistudio.google.com/).\n\n" "2. Click the **Get API Key** button on the left menu.\n\n" "3. Click **Create API Key** (or use your default layout string).\n\n" "4. Copy your string token and paste it into the input box below. " "Click <a href='https://youtu.be/Uyn-P2nRvDA?si=LQi2U0tLsY-zE7a9' target='_blank' style='color: #d4af37; font-weight: bold; text-decoration: underline;'>here</a> to view a short how-to video." ) # --- HORIZONTAL COCKPIT INPUT ROW --- with gr.Row():app.py+7-26