styling, require a code for prompts, admin privs, ordering, filtering, jump-to-page
This commit is contained in:
@@ -6,3 +6,4 @@ tqdm==4.64.0
|
||||
openvino==2022.1.0
|
||||
huggingface_hub==0.9.0
|
||||
scipy==1.9.0
|
||||
ftfy==6.1.1
|
||||
|
@@ -42,8 +42,8 @@ class StableDiffusion:
|
||||
self.latent_shape = tuple(self._unet.inputs[0].shape)[1:]
|
||||
# decoder
|
||||
self._vae = self.core.read_model(
|
||||
hf_hub_download(repo_id=model, filename="vae.xml"),
|
||||
hf_hub_download(repo_id=model, filename="vae.bin")
|
||||
hf_hub_download(repo_id=model, filename="vae_decoder.xml"),
|
||||
hf_hub_download(repo_id=model, filename="vae_decoder.bin")
|
||||
)
|
||||
self.vae = self.core.compile_model(self._vae, device)
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddCompletedStepsToPromptRequest do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:prompt_requests) do
|
||||
add :completed_steps, :integer
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,10 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddQueueTimestampsToPromptRequest do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:prompt_requests) do
|
||||
add :began_at, :naive_datetime
|
||||
add :ended_at, :naive_datetime
|
||||
end
|
||||
end
|
||||
end
|
11
priv/repo/migrations/20220904223206_add_user_table.exs
Normal file
11
priv/repo/migrations/20220904223206_add_user_table.exs
Normal file
@@ -0,0 +1,11 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddUserTable do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:users) do
|
||||
add :ip_address, :string
|
||||
add :username, :string
|
||||
timestamps()
|
||||
end
|
||||
end
|
||||
end
|
13
priv/repo/migrations/20220905174728_create_votes.exs
Normal file
13
priv/repo/migrations/20220905174728_create_votes.exs
Normal file
@@ -0,0 +1,13 @@
|
||||
defmodule Diffuser.Repo.Migrations.CreateVotes do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create table(:votes) do
|
||||
add :prompt_request_id, references(:prompt_requests, on_delete: :nothing)
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
create index(:votes, [:prompt_request_id])
|
||||
end
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddUserToVotes do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:votes) do
|
||||
add :user_id, references(:users)
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddUserToPromptRequests do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:prompt_requests) do
|
||||
add :user_id, references(:users)
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddCodeToUsers do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:users) do
|
||||
add :code, :string
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,9 @@
|
||||
defmodule Diffuser.Repo.Migrations.AddCodeToPromptRequests do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:prompt_requests) do
|
||||
add :code, :string
|
||||
end
|
||||
end
|
||||
end
|
BIN
priv/static/favicon-a8ca4e3a2bb8fea46a9ee9e102e7d3eb.ico
Normal file
BIN
priv/static/favicon-a8ca4e3a2bb8fea46a9ee9e102e7d3eb.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
priv/static/images/GitHub-Mark-Light-120px-plus.png
Normal file
BIN
priv/static/images/GitHub-Mark-Light-120px-plus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
BIN
priv/static/images/phoenix-5bd99a0d17dd41bc9d9bf6840abcc089.png
Normal file
BIN
priv/static/images/phoenix-5bd99a0d17dd41bc9d9bf6840abcc089.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
5
priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt
Normal file
5
priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
||||
#
|
||||
# To ban all spiders from the entire site uncomment the next two lines:
|
||||
# User-agent: *
|
||||
# Disallow: /
|
BIN
priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt.gz
Normal file
BIN
priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt.gz
Normal file
Binary file not shown.
BIN
priv/static/robots.txt.gz
Normal file
BIN
priv/static/robots.txt.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user