Spaces:
Sleeping
Sleeping
| from typing import TypedDict | |
| from .prompt import chain | |
| class State(TypedDict): | |
| pass | |
| async def image_explainer(base64_image, domain, topic, question): | |
| response = await chain.ainvoke({ | |
| "base64_image": base64_image, | |
| "domain": domain, | |
| "topic": topic, | |
| "question": question | |
| }) | |
| return response.content |