De la capăt, Micraglossa citrochroa & Plain-crested elaenia
This commit is contained in:
parent
ad151a5636
commit
1715bf4d37
2 changed files with 8 additions and 7 deletions
|
@ -23,17 +23,17 @@ $deepai_api_key = "59b70a3d-d42a-42be-979d-d09ec08ec7e0"
|
|||
|
||||
$pexels_api_key = "563492ad6f917000010000016e741b30a565426c90e5b65b6b34063b"
|
||||
|
||||
# prod the GAN in a potentially relevant direction with a keyword or phrase prefix
|
||||
# prod the GAN or search in a potentially relevant direction with a keyword or phrase prefix
|
||||
$keyword = ""
|
||||
|
||||
# where to get images? try "t2i" or "unsplash" or "pexels"
|
||||
$img_source = "t2i"
|
||||
$img_source = "pexels"
|
||||
|
||||
# cards descriptions
|
||||
#$cards_csv = 'cards-a1.csv' # 16h
|
||||
#$cards_csv = 'cards-a2.csv' # 17h
|
||||
$cards_csv = 'cards-a3.csv' # 18h
|
||||
#$cards_csv = 'cards.csv'
|
||||
#$cards_csv = 'cards-a3.csv' # 18h
|
||||
$cards_csv = 'cards.csv'
|
||||
|
||||
# unsplash config
|
||||
Unsplash.configure do |config|
|
||||
|
@ -115,6 +115,7 @@ end
|
|||
# - https://en.wikipedia.org/wiki/Wikipedia:Public_domain_image_resources
|
||||
# - https://commons.wikimedia.org/wiki/Category:Images
|
||||
# - https://rapidapi.com/collection/image-apis
|
||||
# - https://github.com/gztchan/awesome-design#stock
|
||||
|
||||
#layouts = ['economy.yml', 'space-layout-1.yml']
|
||||
layouts = ['space-layout-3.yml']
|
||||
|
|
|
@ -103,7 +103,7 @@ def write_occasion(line)
|
|||
end
|
||||
|
||||
# Qualifiers
|
||||
def write_qualifier(line)
|
||||
def write_qualia(line)
|
||||
File.write($cards_csv, "\"" + %Q[#{line}] + "\"" + ",Q,#{$label},img/q_card.svg\n", mode: "a")
|
||||
#File.write($cards_csv, "#{line},Q,#{$label},img/q_card.svg\n", mode: "a")
|
||||
end
|
||||
|
@ -119,7 +119,7 @@ case options.input_type
|
|||
when "txt"
|
||||
puts "reading descriptions from text files" if options.verbose
|
||||
File.foreach($cards_o) { |line| write_occasion line.chomp }
|
||||
File.foreach($cards_q) { |line| write_qualifier line.chomp }
|
||||
File.foreach($cards_q) { |line| write_qualia line.chomp }
|
||||
File.foreach($cards_v) { |line| write_lure line.chomp }
|
||||
when "ods"
|
||||
if options.verbose
|
||||
|
@ -131,7 +131,7 @@ when "ods"
|
|||
puts "1> " + line if options.verbose; write_occasion line.chomp
|
||||
end
|
||||
ods.column(2).reject{ |n| n.nil?}.each do |line|
|
||||
puts "2> " + line if options.verbose; write_qualifier line.chomp
|
||||
puts "2> " + line if options.verbose; write_qualia line.chomp
|
||||
end
|
||||
ods.column(3).reject{ |n| n.nil?}.each do |line|
|
||||
puts "3> " + line if options.verbose; write_lure line.chomp
|
||||
|
|
Loading…
Reference in a new issue