commandblock123 / handwriting-synthesis

đź’»Handwriting Synthesis API: Dockerized Implementation of RNN-based Handwriting Generation
0 stars 1 forks source link

Preview Endpoint #16

Open commandblock123 opened 4 months ago

commandblock123 commented 4 months ago

Description

Currently, the /synthesize_handwriting endpoint only returns the final generated SVG file. While this is useful for integrating the functionality into applications, it can be useful for users to preview the output before downloading or processing the SVG.

Proposed Solution

This issue proposes adding a new endpoint specifically for previewing the synthesized handwriting. This endpoint could be named something like /preview_handwriting.

The preview endpoint would function similarly to /synthesize_handwriting but with a different response format. Instead of returning an SVG file, the response should be a plain text representation of the generated handwriting. This text could include: