Resolution hinzugefügt
Und zurückgeschraubt auf 3.5
This commit is contained in:
@ -32,6 +32,15 @@
|
||||
</RadzenSlider>
|
||||
<RadzenText>@temperature</RadzenText>
|
||||
</RadzenStack>
|
||||
<RadzenStack Orientation="Orientation.Horizontal"
|
||||
AlignItems="AlignItems.Center" Wrap="FlexWrap.Wrap">
|
||||
<RadzenText>Resolution:</RadzenText>
|
||||
<RadzenStack Orientation="Orientation.Horizontal">
|
||||
<RadzenNumeric ShowUpDown = "false" TValue = "int?" @bind-Value=@width />
|
||||
x
|
||||
<RadzenNumeric ShowUpDown = "false" TValue = "int?" @bind-Value=@height />
|
||||
</RadzenStack>
|
||||
</RadzenStack>
|
||||
</RadzenCard>
|
||||
</ChildContent>
|
||||
</RadzenPanel>
|
||||
@ -179,6 +188,8 @@
|
||||
private string _imagePrompt = "";
|
||||
|
||||
private float temperature = 0.9f;
|
||||
private int? width = 1024;
|
||||
private int? height = 1024;
|
||||
private string request = "";
|
||||
private string addons = "";
|
||||
private OpenAIAPI _openAiApi;
|
||||
@ -319,6 +330,12 @@
|
||||
var postData = new
|
||||
{
|
||||
inputs = prompt,
|
||||
parameters = new
|
||||
{
|
||||
negative_prompt = "photorealistic, highly detailed, 8K, portrait",
|
||||
width = width,
|
||||
height = height
|
||||
},
|
||||
options = new
|
||||
{
|
||||
// Cache deaktivieren, damit Huggingface für den selben Prompt unterschiedliche Ergebnisse liefert
|
||||
@ -412,7 +429,7 @@
|
||||
ChatRequest chatRequest = new ChatRequest
|
||||
{
|
||||
Temperature = temperature,
|
||||
Model = Model.GPT4,
|
||||
Model = Model.ChatGPTTurbo,
|
||||
};
|
||||
|
||||
converse = _openAiApi.Chat.CreateConversation(chatRequest);
|
||||
|
||||
@ -1 +1,2 @@
|
||||
Gib mir eine Bildidee, die ein Bild kurz beschreibt im Übertragenden Sinne. Der Titel ist:
|
||||
Gib mir eine kreative Idee für ein Kunstwerk.
|
||||
Der Titel ist:
|
||||
@ -1,9 +1,9 @@
|
||||
Bitte generiere einen Englischen Prompt f<>r dieses Bild
|
||||
|
||||
Hier findest du Beispiele, wie der Promt aussehen soll:
|
||||
"Portrait of an astronaut in space, detailed starry background, reflective helmet."
|
||||
"Painting of an astronaut in space, detailed starry background, reflective helmet."
|
||||
<EFBFBD>Painting of a floating island with giant clock gears, populated with mythical creatures.<2E>
|
||||
<EFBFBD>Landscape of a Japanese garden in autumn, with a bridge over a koi pond.<2E>
|
||||
<EFBFBD>Painting of a Japanese garden in autumn, with a bridge over a koi pond.<2E>
|
||||
<EFBFBD>Painting representing the sound of jazz music, using pale colors and erratic shapes.<2E>
|
||||
Bitte nutze unbedingt f<>r den Prompt maximal 20 W<>rter!
|
||||
|
||||
Der Promt selber darf auf keinen Fall abstrakt sein, man muss durch den Promt ein genaues Bild vor Augen haben.
|
||||
|
||||
Reference in New Issue
Block a user