Update app.py
Browse files
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 |
-
|
8 |
print(value)
|
9 |
-
|
|
|
|
|
|
|
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):
|