JaganathC commited on
Commit
06ea8ea
·
verified ·
1 Parent(s): 5ac6ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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", "Values"]
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
- # Convert only the two columns to tab-separated text for Excel
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
  """