mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-27 06:40:59 +02:00
Merge branch 'main' into 036
This commit is contained in:
commit
e96b736e3a
@ -72,6 +72,7 @@ class ImageGenerationReplicate(DVMTaskInterface):
|
|||||||
self.model = "stability-ai/stable-diffusion-3",
|
self.model = "stability-ai/stable-diffusion-3",
|
||||||
|
|
||||||
for tag in event.tags().to_vec():
|
for tag in event.tags().to_vec():
|
||||||
|
|
||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
input_type = tag.as_vec()[2]
|
input_type = tag.as_vec()[2]
|
||||||
if input_type == "text":
|
if input_type == "text":
|
||||||
|
@ -70,6 +70,7 @@ class ImageGenerationReplicateFluxPro(DVMTaskInterface):
|
|||||||
height = "1024"
|
height = "1024"
|
||||||
|
|
||||||
for tag in event.tags().to_vec():
|
for tag in event.tags().to_vec():
|
||||||
|
|
||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
input_type = tag.as_vec()[2]
|
input_type = tag.as_vec()[2]
|
||||||
if input_type == "text":
|
if input_type == "text":
|
||||||
|
@ -105,9 +105,12 @@ def post_process_list_to_events(result):
|
|||||||
if len(result_list) == 0:
|
if len(result_list) == 0:
|
||||||
return "No results found"
|
return "No results found"
|
||||||
for tag in result_list:
|
for tag in result_list:
|
||||||
e_tag = Tag.parse(tag)
|
try:
|
||||||
result_str = result_str + "nostr:" + EventId.from_hex(
|
e_tag = Tag.parse(tag)
|
||||||
e_tag.as_vec()[1]).to_bech32() + "\n"
|
id = EventId.from_hex(e_tag.as_vec()[1]).to_bech32()
|
||||||
|
result_str = result_str + "nostr:" + id + "\n"
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
return result_str
|
return result_str
|
||||||
|
|
||||||
|
|
||||||
@ -117,9 +120,12 @@ def post_process_list_to_users(result):
|
|||||||
if len(result_list) == 0:
|
if len(result_list) == 0:
|
||||||
return "No results found"
|
return "No results found"
|
||||||
for tag in result_list:
|
for tag in result_list:
|
||||||
p_tag = Tag.parse(tag)
|
try:
|
||||||
result_str = result_str + "nostr:" + PublicKey.parse(
|
p_tag = Tag.parse(tag)
|
||||||
p_tag.as_vec()[1]).to_bech32() + "\n"
|
key = PublicKey.parse(p_tag.as_vec()[1]).to_bech32()
|
||||||
|
result_str = result_str + "nostr:" + key + "\n"
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
return result_str
|
return result_str
|
||||||
|
|
||||||
|
|
||||||
|
@ -418,9 +418,9 @@ def playground(announce=False):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#discovery_bots = build_botfarms("Bot Hunter", "discovery_botfarms", announce)
|
discovery_bots = build_botfarms("Bot Hunter", "discovery_botfarms", announce)
|
||||||
#bot_config.SUPPORTED_DVMS.append(discovery_bots)
|
#bot_config.SUPPORTED_DVMS.append(discovery_bots)
|
||||||
#discovery_bots.run()
|
discovery_bots.run()
|
||||||
|
|
||||||
|
|
||||||
admin_config = AdminConfig()
|
admin_config = AdminConfig()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user