mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-18 23:16:28 +01:00
move is_input_supported and post_process to async, fix some get_event_id async
This commit is contained in:
@@ -30,7 +30,7 @@ class ImageUpscale(DVMTaskInterface):
|
||||
admin_config: AdminConfig = None, options=None):
|
||||
dvm_config.SCRIPT = os.path.abspath(__file__)
|
||||
|
||||
def is_input_supported(self, tags, client=None, dvm_config=None):
|
||||
async def is_input_supported(self, tags, client=None, dvm_config=None):
|
||||
hasurl = False
|
||||
for tag in tags:
|
||||
if tag.as_vec()[0] == 'i':
|
||||
@@ -44,7 +44,7 @@ class ImageUpscale(DVMTaskInterface):
|
||||
|
||||
return True
|
||||
|
||||
def create_request_from_nostr_event(self, event, client=None, dvm_config=None):
|
||||
async def create_request_from_nostr_event(self, event, client=None, dvm_config=None):
|
||||
request_form = {"jobID": event.id().to_hex() + "_" + self.NAME.replace(" ", "")}
|
||||
request_form["trainerFilePath"] = r'modules\image_upscale\image_upscale_realesrgan.trainer'
|
||||
url = ""
|
||||
|
||||
Reference in New Issue
Block a user