parent
11e9a930a1
commit
b9054b485a
|
@ -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."
|
||||
“Painting of a floating island with giant clock gears, populated with mythical creatures.”
|
||||
“Landscape of a Japanese garden in autumn, with a bridge over a koi pond.”
|
||||
“Painting of a Japanese garden in autumn, with a bridge over a koi pond.”
|
||||
“Painting representing the sound of jazz music, using pale colors and erratic shapes.”
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue