YchKhan commited on
Commit
8b4aeb9
·
verified ·
1 Parent(s): 620bfab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -2,11 +2,17 @@ import zipfile
2
  import os
3
  import gradio as gr
4
 
 
 
 
5
  def list_attributes_and_values():
6
  attr = 'temp_files'
7
- value = getattr(fi_output, attr)
8
  print(value)
9
- tmp = list(value)[-1]
 
 
 
10
  return f"[Click here to download the file](https://organizedprogrammers-test-file-editing.hf.space/file={tmp})"
11
 
12
  def append_text_to_file(text):
 
2
  import os
3
  import gradio as gr
4
 
5
+ global value
6
+ value = set()
7
+
8
  def list_attributes_and_values():
9
  attr = 'temp_files'
10
+ new_value = getattr(fi_output, attr)
11
  print(value)
12
+ print(new_value)
13
+ tmp = new_value - value
14
+ print(tmp)
15
+ value = new_value
16
  return f"[Click here to download the file](https://organizedprogrammers-test-file-editing.hf.space/file={tmp})"
17
 
18
  def append_text_to_file(text):