Upload
upload_file(uploaded_file, id, type_of_analysis, user)
Uploads the file for analysis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
uploaded_file
|
Any
|
The file object to be uploaded. |
required |
id
|
str
|
Unique identifier for the task. |
required |
type_of_analysis
|
str
|
The type of analysis to be performed. |
required |
user
|
str
|
The username or identifier of the user. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
Dict
|
The response from the API after the upload request. |
Source code in view/streamlit_app/upload.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|