Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def list_attributes_and_values(
|
| 4 |
attr = 'temp_files'
|
| 5 |
-
value = getattr(
|
| 6 |
for tmp in value:
|
| 7 |
print(f"https://organizedprogrammers-test-file-editing.hf.space/file={tmp}")
|
| 8 |
|
|
@@ -23,6 +23,6 @@ with gr.Blocks() as demo:
|
|
| 23 |
|
| 24 |
tb_input.submit(append_text_to_file, inputs=tb_input, outputs=fi_output)
|
| 25 |
|
| 26 |
-
fi_output.change(list_attributes_and_values, inputs=
|
| 27 |
|
| 28 |
demo.launch(debug=True)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
def list_attributes_and_values():
|
| 4 |
attr = 'temp_files'
|
| 5 |
+
value = getattr(fi_output, attr)
|
| 6 |
for tmp in value:
|
| 7 |
print(f"https://organizedprogrammers-test-file-editing.hf.space/file={tmp}")
|
| 8 |
|
|
|
|
| 23 |
|
| 24 |
tb_input.submit(append_text_to_file, inputs=tb_input, outputs=fi_output)
|
| 25 |
|
| 26 |
+
fi_output.change(list_attributes_and_values, inputs=None, outputs=None)
|
| 27 |
|
| 28 |
demo.launch(debug=True)
|