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