Spaces:
Running
Running
Update document_generator_v3.py
Browse files- document_generator_v3.py +2 -4
document_generator_v3.py
CHANGED
@@ -546,14 +546,12 @@ async def generate_document_outline_endpoint(
|
|
546 |
template: bool = Form(False),
|
547 |
conversation_id: str = Form(...),
|
548 |
num_pages:int = Form(...)
|
549 |
-
|
550 |
-
|
551 |
):
|
552 |
ai_client = AIClient()
|
553 |
document_generator = DocumentGenerator(ai_client)
|
554 |
vision_tools = VisionTools(ai_client)
|
555 |
-
images = ""
|
556 |
-
documents = ""
|
557 |
try:
|
558 |
image_context = ""
|
559 |
if images:
|
|
|
546 |
template: bool = Form(False),
|
547 |
conversation_id: str = Form(...),
|
548 |
num_pages:int = Form(...)
|
549 |
+
images: Optional[List[UploadFile]] = File(None),
|
550 |
+
documents: Optional[List[UploadFile]] = File(None)
|
551 |
):
|
552 |
ai_client = AIClient()
|
553 |
document_generator = DocumentGenerator(ai_client)
|
554 |
vision_tools = VisionTools(ai_client)
|
|
|
|
|
555 |
try:
|
556 |
image_context = ""
|
557 |
if images:
|