YchKhan commited on
Commit
da58160
·
verified ·
1 Parent(s): c2b39ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
 
3
- def list_attributes_and_values(obj):
4
  attr = 'temp_files'
5
- value = getattr(obj, attr)
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=fi_output, outputs=None)
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)