|
# Design Document |
|
|
|
## Sequence Diagram |
|
|
|
@startuml |
|
participant "User" as user |
|
participant "Gradio Interface" as gradio |
|
participant "FastAPI Router" as fastapi |
|
participant "Google Lens API" as google_lens |
|
participant "Django Model" as django_model |
|
|
|
user -> gradio: Request data |
|
gradio -> fastapi: Request data |
|
fastapi -> google_lens: Request data |
|
google_lens -> fastapi: Return data |
|
fastapi -> gradio: Return data |
|
gradio -> user: Display data |
|
@enduml |
|
|
|
## Design Overview |
|
|
|
The application consists of a Gradio frontend, a FastAPI router, and a Django model. The Gradio frontend interacts with the FastAPI router, which retrieves data from the Google Lens API. The data is then stored in the Django model. |