mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-18 10:07:36 +01:00
added huggingchat examples
This commit is contained in:
@@ -58,6 +58,10 @@ class TextSummarizationHuggingChat(DVMTaskInterface):
|
||||
EventDefinitions.KIND_NIP90_RESULT_TRANSLATE_TEXT,
|
||||
EventDefinitions.KIND_NIP90_RESULT_CONTENT_DISCOVERY],
|
||||
dvm_config=dvm_config)
|
||||
if evt is None:
|
||||
print("Event not found")
|
||||
raise Exception
|
||||
|
||||
if evt.kind() == EventDefinitions.KIND_NIP90_RESULT_CONTENT_DISCOVERY:
|
||||
result_list = json.loads(evt.content())
|
||||
prompt = ""
|
||||
|
||||
Reference in New Issue
Block a user