rename deploy to publish
Browse files5284 unmodified lines528552865287528852895290529178 unmodified lines5370537153725373537453755376387 unmodified lines576457655766576757685769577081 unmodified lines5852585358545855585658575858430 unmodified lines62896290629162926293629462951432 unmodified lines7728772977307731773277337734116 unmodified lines785178527853785478557856785725 unmodified lines788378847885788678877888788917 unmodified lines7907790879097910791179127913363 unmodified lines82778278827982808281828282833 unmodified lines82878288828982908291829282935284 unmodified linesmax-width: 300px;text-align: center;">π Deploy app to see videos with permanent URLs!</div>'''# Insert the notice right after the opening body tag78 unmodified linesmax-width: 300px;text-align: center;">π 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></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></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></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 lineslabel="App SDK",visible=False)deploy_btn = gr.Button("π Deploy App", variant="primary", visible=True)deploy_status = gr.Markdown(visible=False, label="Deploy status")# --- End move ---# Removed media generation and web search UI components116 unmodified linesgr.update(),[],[],gr.update(value="π Deploy App", visible=False),gr.update(), # keep import header as-isgr.update(), # keep import button as-isgr.update() # language dropdown - no change25 unmodified linesgr.update(value="", visible=False), # hide import textbox after submitloaded_history,history_to_chatbot_messages(loaded_history),gr.update(value="π Deploy App", visible=True),gr.update(visible=False), # hide import headergr.update(visible=False), # hide import buttongr.update(value=framework_type) # set language dropdown to framework type17 unmodified linesgr.update(value="", visible=False), # hide import textbox after submitloaded_history,history_to_chatbot_messages(loaded_history),gr.update(value="π Deploy App", visible=False),gr.update(visible=False), # hide import headergr.update(visible=False), # hide import buttongr.update(value=framework_type) # set language dropdown to detected language363 unmodified linesreturn "<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><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 linesclear_btn.click(hide_deploy_components, None, [deploy_btn])# Reset button text when clearingclear_btn.click(lambda: gr.update(value="π Deploy App"),outputs=[deploy_btn])5284 unmodified lines528552865287528852895290529178 unmodified lines5370537153725373537453755376387 unmodified lines576457655766576757685769577081 unmodified lines5852585358545855585658575858430 unmodified lines62896290629162926293629462951432 unmodified lines7728772977307731773277337734116 unmodified lines785178527853785478557856785725 unmodified lines788378847885788678877888788917 unmodified lines7907790879097910791179127913363 unmodified lines82778278827982808281828282833 unmodified lines82878288828982908291829282935284 unmodified linesmax-width: 300px;text-align: center;">Deploy app to see videos with permanent URLs!</div>'''# Insert the notice right after the opening body tag78 unmodified linesmax-width: 300px;text-align: center;">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></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>"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>"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 lineslabel="App SDK",visible=False)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 linesgr.update(),[],[],gr.update(value="Publish", visible=False),gr.update(), # keep import header as-isgr.update(), # keep import button as-isgr.update() # language dropdown - no change25 unmodified linesgr.update(value="", visible=False), # hide import textbox after submitloaded_history,history_to_chatbot_messages(loaded_history),gr.update(value="Publish", visible=True),gr.update(visible=False), # hide import headergr.update(visible=False), # hide import buttongr.update(value=framework_type) # set language dropdown to framework type17 unmodified linesgr.update(value="", visible=False), # hide import textbox after submitloaded_history,history_to_chatbot_messages(loaded_history),gr.update(value="Publish", visible=False),gr.update(visible=False), # hide import headergr.update(visible=False), # hide import buttongr.update(value=framework_type) # set language dropdown to detected language363 unmodified linesreturn "<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><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 linesclear_btn.click(hide_deploy_components, None, [deploy_btn])# Reset button text when clearingclear_btn.click(lambda: gr.update(value="Publish"),outputs=[deploy_btn])
app.py+11-11