Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ import gradio as gr
|
|
| 5 |
def list_attributes_and_values():
|
| 6 |
attr = 'temp_files'
|
| 7 |
value = getattr(fi_output, attr)
|
| 8 |
-
|
| 9 |
-
|
| 10 |
|
| 11 |
def append_text_to_file(text):
|
| 12 |
file_path = 'text_file.txt'
|
|
|
|
| 5 |
def list_attributes_and_values():
|
| 6 |
attr = 'temp_files'
|
| 7 |
value = getattr(fi_output, attr)
|
| 8 |
+
tmp = list(value)[-1]
|
| 9 |
+
return f"[Click here to download the file](https://organizedprogrammers-test-file-editing.hf.space/file={tmp})"
|
| 10 |
|
| 11 |
def append_text_to_file(text):
|
| 12 |
file_path = 'text_file.txt'
|