freddyaboulton HF staff commited on
Commit
8f83b97
1 Parent(s): 8e15866

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -3,10 +3,6 @@ import gradio as gr
3
  from gradio_textwithattachments import TextWithAttachments
4
  from gradio_textwithattachments.textwithattachments import TextWithAttachmentsData
5
 
6
-
7
- example = TextWithAttachments().example_inputs()
8
-
9
-
10
  with gr.Blocks() as demo:
11
  with gr.Row():
12
  with gr.Column():
@@ -19,7 +15,7 @@ with gr.Blocks() as demo:
19
  json_outout = gr.JSON()
20
 
21
  @gr.on(
22
- [text.text_change, text.file_upload, text.text_submit],
23
  inputs=[text],
24
  outputs=[message, files, json_outout])
25
  def update(data: TextWithAttachmentsData):
 
3
  from gradio_textwithattachments import TextWithAttachments
4
  from gradio_textwithattachments.textwithattachments import TextWithAttachmentsData
5
 
 
 
 
 
6
  with gr.Blocks() as demo:
7
  with gr.Row():
8
  with gr.Column():
 
15
  json_outout = gr.JSON()
16
 
17
  @gr.on(
18
+ [text.file_upload, text.text_submit],
19
  inputs=[text],
20
  outputs=[message, files, json_outout])
21
  def update(data: TextWithAttachmentsData):