It is said that there is no main function, but is this by design? #10689
sinoda1114
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Self Checks
Content
""
Traceback (most recent call last): File "/var/sandbox/sandbox-python/tmp/6e5fb080_148a_4ca7_814b_285635996d66.py", line 48 of File "", line 58 of NameError: name 'main' is not defined Error: Exit status 255
""
The code that could be executed without problems in google colab, but when using Dify, the above error occurred.
Solution: Add below
""
#Define main function
def main():
#Get domain information
Domain URL = get_domain URL(sample domain)
print("Obtained URL list:",domain_urls)
#Entry point
If name == "main":
major ()
""
Since this is a Dify specification, please?
Beta Was this translation helpful? Give feedback.
All reactions