Spaces:
Sleeping
Sleeping
remove deploy tab
Browse files
app.py
CHANGED
|
@@ -5939,7 +5939,7 @@ Generate the exact search/replace blocks needed to make these changes."""
|
|
| 5939 |
<div style='padding: 1.5em; text-align: center; background: #f0f9ff; border: 2px solid #0ea5e9; border-radius: 10px; color: #0c4a6e;'>
|
| 5940 |
<h3 style='margin-top: 0; color: #0ea5e9;'>β
Code Updated Successfully!</h3>
|
| 5941 |
<p style='margin: 0.5em 0; font-size: 1.1em;'>Your {language.upper()} code has been modified and is ready for deployment.</p>
|
| 5942 |
-
<p style='margin: 0.5em 0; font-weight: bold;'>π
|
| 5943 |
</div>
|
| 5944 |
"""
|
| 5945 |
|
|
@@ -6137,7 +6137,7 @@ This will help me create a better design for you."""
|
|
| 6137 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border-radius: 10px;'>
|
| 6138 |
<h3 style='margin-top: 0; color: white;'>β
{language.upper()} Code Generated!</h3>
|
| 6139 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your code is ready for deployment.</p>
|
| 6140 |
-
<p style='margin: 0.5em 0; font-weight: bold;'>π
|
| 6141 |
</div>
|
| 6142 |
""",
|
| 6143 |
history_output: history_to_chatbot_messages(_history),
|
|
@@ -6157,7 +6157,7 @@ This will help me create a better design for you."""
|
|
| 6157 |
<div style='text-align: left; max-width: 500px; margin: 0 auto;'>
|
| 6158 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6159 |
<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;'>1</span>
|
| 6160 |
-
|
| 6161 |
</p>
|
| 6162 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6163 |
<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;'>2</span>
|
|
@@ -6612,7 +6612,7 @@ This will help me create a better design for you."""
|
|
| 6612 |
<div style='text-align: left; max-width: 500px; margin: 0 auto;'>
|
| 6613 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6614 |
<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;'>1</span>
|
| 6615 |
-
|
| 6616 |
</p>
|
| 6617 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6618 |
<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;'>2</span>
|
|
@@ -7845,28 +7845,6 @@ with gr.Blocks(
|
|
| 7845 |
interactive=True,
|
| 7846 |
label="Generated code"
|
| 7847 |
)
|
| 7848 |
-
with gr.Tab("Deploy"):
|
| 7849 |
-
sandbox = gr.HTML(
|
| 7850 |
-
value="""
|
| 7851 |
-
<div style='padding: 2em; text-align: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 10px; margin: 1em 0;'>
|
| 7852 |
-
<h2 style='margin-top: 0; font-size: 2em;'>π Ready to Deploy?</h2>
|
| 7853 |
-
<p style='font-size: 1.2em; margin: 1em 0;'>Your code is generated! Now it's time to bring it to life.</p>
|
| 7854 |
-
<div style='background: rgba(255,255,255,0.1); padding: 1.5em; border-radius: 8px; margin: 1em 0;'>
|
| 7855 |
-
<h3 style='margin-top: 0;'>π Steps to Deploy:</h3>
|
| 7856 |
-
<ol style='text-align: left; max-width: 600px; margin: 0 auto; font-size: 1.1em; line-height: 1.6;'>
|
| 7857 |
-
<li><strong>Enter your app name</strong> in the field below</li>
|
| 7858 |
-
<li><strong>Choose your deployment platform</strong> (Gradio, Streamlit, Static HTML, etc.)</li>
|
| 7859 |
-
<li><strong>Click "Deploy App"</strong> to create your Hugging Face Space</li>
|
| 7860 |
-
<li><strong>Share your creation</strong> with the world! π</li>
|
| 7861 |
-
</ol>
|
| 7862 |
-
</div>
|
| 7863 |
-
<p style='font-size: 1em; opacity: 0.9; margin-bottom: 0;'>
|
| 7864 |
-
π‘ <strong>Tip:</strong> Your app will be live and accessible to everyone once deployed!
|
| 7865 |
-
</p>
|
| 7866 |
-
</div>
|
| 7867 |
-
""",
|
| 7868 |
-
label="Deployment Guide"
|
| 7869 |
-
)
|
| 7870 |
|
| 7871 |
|
| 7872 |
|
|
@@ -8271,7 +8249,7 @@ with gr.Blocks(
|
|
| 8271 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; border-radius: 10px;'>
|
| 8272 |
<h3 style='margin-top: 0; color: white;'>π Transformers.js App Ready!</h3>
|
| 8273 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your multi-file Transformers.js application is ready for deployment.</p>
|
| 8274 |
-
<p style='margin: 0.5em 0; font-weight: bold;'>π
|
| 8275 |
</div>
|
| 8276 |
"""
|
| 8277 |
|
|
@@ -8429,7 +8407,7 @@ with gr.Blocks(
|
|
| 8429 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; border-radius: 10px;'>
|
| 8430 |
<h3 style='margin-top: 0; color: white;'>π Ready to Deploy!</h3>
|
| 8431 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your {language.upper()} code is ready for deployment.</p>
|
| 8432 |
-
<p style='margin: 0.5em 0; font-weight: bold;'>π
|
| 8433 |
</div>
|
| 8434 |
"""
|
| 8435 |
|
|
|
|
| 5939 |
<div style='padding: 1.5em; text-align: center; background: #f0f9ff; border: 2px solid #0ea5e9; border-radius: 10px; color: #0c4a6e;'>
|
| 5940 |
<h3 style='margin-top: 0; color: #0ea5e9;'>β
Code Updated Successfully!</h3>
|
| 5941 |
<p style='margin: 0.5em 0; font-size: 1.1em;'>Your {language.upper()} code has been modified and is ready for deployment.</p>
|
| 5942 |
+
<p style='margin: 0.5em 0; font-weight: bold;'>π Use the Deploy button in the sidebar to publish your app!</p>
|
| 5943 |
</div>
|
| 5944 |
"""
|
| 5945 |
|
|
|
|
| 6137 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border-radius: 10px;'>
|
| 6138 |
<h3 style='margin-top: 0; color: white;'>β
{language.upper()} Code Generated!</h3>
|
| 6139 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your code is ready for deployment.</p>
|
| 6140 |
+
<p style='margin: 0.5em 0; font-weight: bold;'>π Use the Deploy button in the sidebar to publish your app!</p>
|
| 6141 |
</div>
|
| 6142 |
""",
|
| 6143 |
history_output: history_to_chatbot_messages(_history),
|
|
|
|
| 6157 |
<div style='text-align: left; max-width: 500px; margin: 0 auto;'>
|
| 6158 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6159 |
<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;'>1</span>
|
| 6160 |
+
Use the <strong>Deploy button</strong> in the sidebar
|
| 6161 |
</p>
|
| 6162 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6163 |
<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;'>2</span>
|
|
|
|
| 6612 |
<div style='text-align: left; max-width: 500px; margin: 0 auto;'>
|
| 6613 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6614 |
<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;'>1</span>
|
| 6615 |
+
Use the <strong>Deploy button</strong> in the sidebar
|
| 6616 |
</p>
|
| 6617 |
<p style='margin: 0.8em 0; font-size: 1.1em; display: flex; align-items: center;'>
|
| 6618 |
<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;'>2</span>
|
|
|
|
| 7845 |
interactive=True,
|
| 7846 |
label="Generated code"
|
| 7847 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7848 |
|
| 7849 |
|
| 7850 |
|
|
|
|
| 8249 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); color: white; border-radius: 10px;'>
|
| 8250 |
<h3 style='margin-top: 0; color: white;'>π Transformers.js App Ready!</h3>
|
| 8251 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your multi-file Transformers.js application is ready for deployment.</p>
|
| 8252 |
+
<p style='margin: 0.5em 0; font-weight: bold;'>π Use the Deploy button in the sidebar to publish your app!</p>
|
| 8253 |
</div>
|
| 8254 |
"""
|
| 8255 |
|
|
|
|
| 8407 |
<div style='padding: 1.5em; text-align: center; background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; border-radius: 10px;'>
|
| 8408 |
<h3 style='margin-top: 0; color: white;'>π Ready to Deploy!</h3>
|
| 8409 |
<p style='margin: 0.5em 0; opacity: 0.9;'>Your {language.upper()} code is ready for deployment.</p>
|
| 8410 |
+
<p style='margin: 0.5em 0; font-weight: bold;'>π Use the Deploy button in the sidebar to publish your app!</p>
|
| 8411 |
</div>
|
| 8412 |
"""
|
| 8413 |
|