Pārlūkot izejas kodu

add rpyc class and update Dockerfile

ming 3 gadi atpakaļ
vecāks
revīzija
437519392a
1 mainītis faili ar 5 papildinājumiem un 5 dzēšanām
  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')