patharanor commited on
Commit
af43b14
·
1 Parent(s): 36d841b

add ref image uri

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. models/image_object.py +2 -1
app.py CHANGED
@@ -93,6 +93,8 @@ async def upload(
93
  logging.warning(f"Error during upload: {res.error}")
94
  return {"error": "Failed to upload content"}
95
 
 
 
96
  return res
97
 
98
  def is_valid(u, p):
 
93
  logging.warning(f"Error during upload: {res.error}")
94
  return {"error": "Failed to upload content"}
95
 
96
+ res.data = o.ref
97
+
98
  return res
99
 
100
  def is_valid(u, p):
models/image_object.py CHANGED
@@ -5,4 +5,5 @@ class ImageObject(BaseModel):
5
  name: str
6
  key: str
7
  job_no: str
8
- content: Union[str, None] = None
 
 
5
  name: str
6
  key: str
7
  job_no: str
8
+ content: Union[str, None] = None
9
+ ref: Union[str, None] = None