Update app2.py
Browse files
app2.py
CHANGED
|
@@ -124,7 +124,14 @@ with gr.Blocks(theme='snehilsanyal/scikit-learn') as app1:
|
|
| 124 |
with gr.Column():
|
| 125 |
outputbox = gr.Textbox(label="here are the plans...")
|
| 126 |
btn_Save = gr.Button("save to email")
|
| 127 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 128 |
image_box = gr.Image(type="filepath")
|
| 129 |
|
| 130 |
btn = gr.Button("Make a Plan")
|
|
|
|
| 124 |
with gr.Column():
|
| 125 |
outputbox = gr.Textbox(label="here are the plans...")
|
| 126 |
btn_Save = gr.Button("save to email")
|
| 127 |
+
clicked = btn_Save.click(app1_query,
|
| 128 |
+
[image_box],
|
| 129 |
+
outputbox
|
| 130 |
+
).then(app1_response,
|
| 131 |
+
[image_box],
|
| 132 |
+
outputbox
|
| 133 |
+
)
|
| 134 |
+
|
| 135 |
image_box = gr.Image(type="filepath")
|
| 136 |
|
| 137 |
btn = gr.Button("Make a Plan")
|