(history, file, txt, motion_uploaded)
| 214 | |
| 215 | |
| 216 | def add_file(history, file, txt, motion_uploaded): |
| 217 | |
| 218 | motion_uploaded['file'] = file.name |
| 219 | txt = txt.replace(" <Motion_Placeholder>", "") + " <Motion_Placeholder>" |
| 220 | return history, gr.update(value=txt, interactive=True), motion_uploaded |
| 221 | |
| 222 | |
| 223 | def bot(history, motion_uploaded, data_stored, method): |