Spaces:
Runtime error
Runtime error
Commit
•
8f83b97
1
Parent(s):
8e15866
Update app.py
Browse files
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.
|
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):
|