You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
636 B
25 lines
636 B
2 years ago
|
using System.Text.Json.Serialization;
|
||
|
|
||
1 year ago
|
namespace StabilityMatrix.Core.Models.Api;
|
||
2 years ago
|
|
||
|
public class ProgressResponse
|
||
|
{
|
||
|
// Range from 0 to 1
|
||
|
[JsonPropertyName("progress")]
|
||
|
public float Progress { get; set; }
|
||
|
|
||
|
// ETA in seconds
|
||
|
[JsonPropertyName("eta_relative")]
|
||
|
public float EtaRelative { get; set; }
|
||
|
|
||
|
// state: dict
|
||
|
|
||
|
// The current image in base64 format. opts.show_progress_every_n_steps is required for this to work
|
||
|
[JsonPropertyName("current_image")]
|
||
|
public string? CurrentImage { get; set; }
|
||
|
|
||
|
[JsonPropertyName("textinfo")]
|
||
|
public string? TextInfo { get; set; }
|
||
|
|
||
|
}
|