Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def parse_text_to_rows(text):
|
|
| 61 |
|
| 62 |
return pd.DataFrame(
|
| 63 |
rows,
|
| 64 |
-
columns=["Object Name/Key Name", "
|
| 65 |
)
|
| 66 |
|
| 67 |
# -------------------------------------------------
|
|
@@ -82,10 +82,9 @@ if st.button("Generate Excel Data", type="primary"):
|
|
| 82 |
st.dataframe(df, use_container_width=True)
|
| 83 |
|
| 84 |
# -------------------------
|
| 85 |
-
# Copy to Clipboard Button
|
| 86 |
# -------------------------
|
| 87 |
-
|
| 88 |
-
csv_text = df.to_csv(index=False, sep="\t", header=True)
|
| 89 |
copy_button_html = f"""
|
| 90 |
<button onclick="navigator.clipboard.writeText(`{csv_text}`)">📋 Copy Two Columns</button>
|
| 91 |
"""
|
|
|
|
| 61 |
|
| 62 |
return pd.DataFrame(
|
| 63 |
rows,
|
| 64 |
+
columns=["Object Name/Key Name", "English_Values"]
|
| 65 |
)
|
| 66 |
|
| 67 |
# -------------------------------------------------
|
|
|
|
| 82 |
st.dataframe(df, use_container_width=True)
|
| 83 |
|
| 84 |
# -------------------------
|
| 85 |
+
# Copy to Clipboard Button (Only content)
|
| 86 |
# -------------------------
|
| 87 |
+
csv_text = df.to_csv(index=False, sep="\t", header=False) # <-- header=False
|
|
|
|
| 88 |
copy_button_html = f"""
|
| 89 |
<button onclick="navigator.clipboard.writeText(`{csv_text}`)">📋 Copy Two Columns</button>
|
| 90 |
"""
|