You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thisutilityfunction is used to simplify the process of handling file inputs for the client.
346
+
347
+
Gradio APIs expect a special file datastructure that references a location on the server. These files can be manually uploaded but figuring what to do with different file types can be difficult depending on your environment.
348
+
349
+
This function will handle files regardless of whether or not they are local files (nodeonly), URLs, Blobs, or Buffers. It will take in a reference and handle it accordingly,uploading the file where appropriate and generating the correct data structure for the client.
350
+
351
+
The return value of this function can be used anywhere in the input data where a file is expected:
0 commit comments