rename deploy to publish
Browse files5284 unmodified lines5285528652875288528852895290529178 unmodified lines53705371537253735373537453755376387 unmodified lines5764576557665767576757685769577081 unmodified lines58525853585458555855585658575858430 unmodified lines628962906291629262926293629462951432 unmodified lines77287729773077317731773277337734116 unmodified lines7851785278537854785478557856785725 unmodified lines7883788478857886788678877888788917 unmodified lines79077908790979107910791179127913363 unmodified lines827782788279828082808281828282833 unmodified lines828782888289829082908291829282935284 unmodified lines max-width: 300px; text-align: center; "> π Deploy app to see videos with permanent URLs! Deploy app to see videos with permanent URLs! </div> ''' # Insert the notice right after the opening body tag78 unmodified lines max-width: 300px; text-align: center; "> π Deploy app to see videos with permanent URLs! Deploy app to see videos with permanent URLs! </div> ''' # Insert the notice right after the opening body tag387 unmodified lines <h3 style='margin-top: 0; color: white;'>β‘ Generating Your {language.upper()} App...</h3> <p style='margin: 0.5em 0; opacity: 0.9;'>Code is being generated in real-time!</p> <div style='background: rgba(255,255,255,0.2); padding: 1em; border-radius: 8px; margin: 1em 0;'> <p style='margin: 0; font-size: 1.1em;'>π Get ready to deploy once generation completes!</p> <p style='margin: 0; font-size: 1.1em;'>Get ready to deploy once generation completes!</p> </div> </div> """81 unmodified lines </p> <p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'> <span style='background: rgba(255,255,255,0.2); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-weight: bold;'>3</span> Click <strong>"Deploy App"</strong> Click <strong>"Publish"</strong> </p> <p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'> <span style='background: rgba(255,255,255,0.2); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-weight: bold;'>4</span>430 unmodified lines </p> <p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'> <span style='background: rgba(255,255,255,0.2); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-weight: bold;'>3</span> Click <strong>"Deploy App"</strong> Click <strong>"Publish"</strong> </p> <p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'> <span style='background: rgba(255,255,255,0.2); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-weight: bold;'>4</span>1432 unmodified lines label="App SDK", visible=False ) deploy_btn = gr.Button("π Deploy App", variant="primary", visible=True) deploy_btn = gr.Button("Publish", variant="primary", visible=True) deploy_status = gr.Markdown(visible=False, label="Deploy status") # --- End move --- # Removed media generation and web search UI components116 unmodified lines gr.update(), [], [], gr.update(value="π Deploy App", visible=False), gr.update(value="Publish", visible=False), gr.update(), # keep import header as-is gr.update(), # keep import button as-is gr.update() # language dropdown - no change25 unmodified lines gr.update(value="", visible=False), # hide import textbox after submit loaded_history, history_to_chatbot_messages(loaded_history), gr.update(value="π Deploy App", visible=True), gr.update(value="Publish", visible=True), gr.update(visible=False), # hide import header gr.update(visible=False), # hide import button gr.update(value=framework_type) # set language dropdown to framework type17 unmodified lines gr.update(value="", visible=False), # hide import textbox after submit loaded_history, history_to_chatbot_messages(loaded_history), gr.update(value="π Deploy App", visible=False), gr.update(value="Publish", visible=False), gr.update(visible=False), # hide import header gr.update(visible=False), # hide import button gr.update(value=framework_type) # set language dropdown to detected language363 unmodified lines return "<div style='padding:1em;color:#888;text-align:center;'>Generate some code to see deployment options.</div>" return f""" <div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; border-radius: 10px;'> <h3 style='margin-top: 0; color: white;'>π Ready to Deploy!</h3> <h3 style='margin-top: 0; color: white;'>Ready to Deploy!</h3> <p style='margin: 0.5em 0; opacity: 0.9;'>Your {language.upper()} code is ready for deployment.</p> <p style='margin: 0.5em 0; font-weight: bold;'>π Use the Deploy button in the sidebar to publish your app!</p> </div>3 unmodified lines clear_btn.click(hide_deploy_components, None, [deploy_btn]) # Reset button text when clearing clear_btn.click( lambda: gr.update(value="π Deploy App"), lambda: gr.update(value="Publish"), outputs=[deploy_btn] )
app.py+11-11