Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def process_file(file):
|
|
51 |
combined = (first_name + " " + last_name + " " + company).str.strip()
|
52 |
output_df["Contact Name"] = combined
|
53 |
output_df["Company or Name"] = combined
|
54 |
-
|
55 |
# 2. Shipping Country Code -> Country
|
56 |
if "Shipping Country Code" in df.columns:
|
57 |
output_df["Country"] = df["Shipping Country Code"].fillna("").astype(str).str.strip()
|
@@ -188,16 +188,22 @@ with gr.Blocks(title="Shipping - UPS") as demo:
|
|
188 |
|
189 |
process_button.click(fn=process_file, inputs=[file_input], outputs=[output_data, output_file_component])
|
190 |
|
191 |
-
# Updated hyperlink block with
|
192 |
gr.HTML(
|
193 |
"""
|
194 |
<div style="text-align: center; font-size: 16px; margin-top: 20px;">
|
195 |
-
<
|
|
|
196 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-ec-ship">EC-Ship</a> |
|
197 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-fedex">Fedex</a> |
|
198 |
-
<a href="https://huggingface.co/spaces/leadingbridge/tss-order">Order Processing</a> |
|
199 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-UPS">UPS</a>
|
200 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
"""
|
202 |
)
|
203 |
|
|
|
51 |
combined = (first_name + " " + last_name + " " + company).str.strip()
|
52 |
output_df["Contact Name"] = combined
|
53 |
output_df["Company or Name"] = combined
|
54 |
+
|
55 |
# 2. Shipping Country Code -> Country
|
56 |
if "Shipping Country Code" in df.columns:
|
57 |
output_df["Country"] = df["Shipping Country Code"].fillna("").astype(str).str.strip()
|
|
|
188 |
|
189 |
process_button.click(fn=process_file, inputs=[file_input], outputs=[output_data, output_file_component])
|
190 |
|
191 |
+
# Updated hyperlink block with separate sections for Shipping Tools and Administration Tools.
|
192 |
gr.HTML(
|
193 |
"""
|
194 |
<div style="text-align: center; font-size: 16px; margin-top: 20px;">
|
195 |
+
<h3>Shipping Tools</h3>
|
196 |
+
<a href="https://huggingface.co/spaces/leadingbridge/shipping-dhl-e-commerce">DHL</a> |
|
197 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-ec-ship">EC-Ship</a> |
|
198 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-fedex">Fedex</a> |
|
|
|
199 |
<a href="https://huggingface.co/spaces/leadingbridge/shipping-UPS">UPS</a>
|
200 |
</div>
|
201 |
+
<div style="text-align: center; font-size: 16px; margin-top: 20px;">
|
202 |
+
<h3>Administration Tools</h3>
|
203 |
+
<a href="https://huggingface.co/spaces/leadingbridge/email-template">Email Template</a> |
|
204 |
+
<a href="https://huggingface.co/spaces/leadingbridge/product-feed">Google Merchant</a> |
|
205 |
+
<a href="https://huggingface.co/spaces/leadingbridge/tss-order">Order Processing</a>
|
206 |
+
</div>
|
207 |
"""
|
208 |
)
|
209 |
|