Explorar o código

add rpyc class and update Dockerfile

ming %!s(int64=4) %!d(string=hai) anos
pai
achega
437519392a
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      OpenshotService/openshot_video_generator.py

+ 5 - 5
OpenshotService/openshot_video_generator.py

@@ -408,8 +408,8 @@ class video_service(rpyc.Service):
         anchor_video_v2(name_hash,name,text_content, image_urls,avatar,client_id)
         
 
-if __name__ == "__main__":
-    from rpyc.utils.server import ThreadedServer
-    t = ThreadedServer(video_service, port=18861)
-    t.start()
-    print('service started')
+
+from rpyc.utils.server import ThreadedServer
+t = ThreadedServer(video_service, port=18861)
+t.start()
+print('service started')