MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / add_file

Function add_file

app.py:216–220  ·  view source on GitHub ↗
(history, file, txt, motion_uploaded)

Source from the content-addressed store, hash-verified

214
215
216def 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
223def bot(history, motion_uploaded, data_stored, method):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected