Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|