awacke1 commited on
Commit
11b82b8
β€’
1 Parent(s): f3a97a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,9 +33,9 @@ def get_table_download_link(file_path):
33
  with open(file_path, 'r') as file:
34
  data = file.read()
35
  b64 = base64.b64encode(data.encode()).decode()
36
- href = f'<a href="data:file/htm;base64,{b64}" download="{os.path.basename(file_path)}">{os.path.basename(file_path)}</a>'
37
  return href
38
-
39
  def main():
40
  st.title("Chat with AI")
41
 
 
33
  with open(file_path, 'r') as file:
34
  data = file.read()
35
  b64 = base64.b64encode(data.encode()).decode()
36
+ href = f'<a href="data:file/htm;base64,{b64}" target="_blank" download="{os.path.basename(file_path)}">{os.path.basename(file_path)}</a>'
37
  return href
38
+
39
  def main():
40
  st.title("Chat with AI")
41