YchKhan commited on
Commit
0957f86
·
verified ·
1 Parent(s): 2b640c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- for tmp in value:
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'
 
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'