projects > dreampicai.go
1
DreampicAI[github][live]
1
2
Image generation hub that leverages multiple AI models which
3
streamlines the complex process of AI image generation by
4
providing a simple interface for model selection and prompt
5
input.
6
7
Built with ~0% javascript, utilizing the power of Golang, Templ
8
and HTMX to deliver a user-friendly experience.
9
10
[GitHub][Go][HTMX][Replicate][Supabase][Templ]
11
13
14
prediction, err := replicate.Client.CreatePrediction(
15
r.Context(),
16
model,
17
replicate.PredictionInput{
18
"prompt": prompt,
19
"negative_prompt": negativePrompt,
20
"num_outputs": 1,
21
"width": 960,
22
"height": 1280,
23
"output_quality": 100,
24
"prompt_strength": 0.8,
25
"num_inference_steps": 10,
26
},
27
&replicate.Webhook{
28
URL: os.Getenv("REPLICATE_WEBHOOK"),
29
Events: []replicate.WebhookEventType{"completed"},
30
},
31
false,
32
)
33
34
35
36
NORMAL~/oleksandr/projects/dreampicai.go.../projects/dreampicai.gomainutf-8
Enter to open · :q to quit
keys
j / kmove the cursor line, or the tree cursor
hfocus the tree; in the tree, fold or go to the parent
l / Enterin the tree, unfold or open the file
gg / Gfirst / last line
clickput the cursor on a line; on README.sh, run the session again
:qquit to the shell
:help ?this table
q / Escclose this