fix: basic fixes on the prompt
This commit is contained in:
parent
9249c24659
commit
ec2294a455
1 changed files with 2 additions and 2 deletions
|
|
@ -160,7 +160,7 @@ async def generate_html_from_slide(base64_image: str, media_type: str, xml_conte
|
|||
|
||||
return html_content
|
||||
|
||||
except errors.GoogleAPIError as e:
|
||||
except errors.APIError as e:
|
||||
print(f"Google API Error: {e}")
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
|
|
@ -255,7 +255,7 @@ async def generate_react_component_from_html(html_content: str, api_key: str) ->
|
|||
print(f"Filtered React content length: {len(filtered_react_content)}")
|
||||
|
||||
return filtered_react_content
|
||||
except errors.GoogleAPIError as e:
|
||||
except errors.APIError as e:
|
||||
print(f"Google API Error: {e}")
|
||||
raise HTTPException(
|
||||
status_code=500,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue