new config and return json
Browse files- main_noweb.py +2 -5
main_noweb.py
CHANGED
@@ -158,9 +158,6 @@ def pose2d(video, kpt_threshold):
|
|
158 |
|
159 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
160 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
161 |
-
print(os.listdir(glob.glob(os.path.join(add_dir, "*.mp4"))))
|
162 |
-
print(glob.glob(os.path.join(add_dir, "*.json")))
|
163 |
-
print(os.listdir(add_dir))
|
164 |
|
165 |
with open('path_to_file/person.json', 'r') as f:
|
166 |
data = json.load(kpoints)
|
@@ -276,8 +273,8 @@ if __name__ == "__main__":
|
|
276 |
concurrency_count=40, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
277 |
max_size=25, # Maximum number of requests that the queue processes
|
278 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
279 |
-
)
|
280 |
-
|
281 |
server_name="0.0.0.0",
|
282 |
server_port=7860,
|
283 |
auth=("novouser", "bstad2023")
|
|
|
158 |
|
159 |
out_file = glob.glob(os.path.join(add_dir, "*.mp4")) #+ glob.glob(os.path.join(vis_out_dir, "*.webm"))
|
160 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
|
|
|
|
|
|
161 |
|
162 |
with open('path_to_file/person.json', 'r') as f:
|
163 |
data = json.load(kpoints)
|
|
|
273 |
concurrency_count=40, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
274 |
max_size=25, # Maximum number of requests that the queue processes
|
275 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
276 |
+
).launch(
|
277 |
+
enable_queue=True,
|
278 |
server_name="0.0.0.0",
|
279 |
server_port=7860,
|
280 |
auth=("novouser", "bstad2023")
|