new config and return json
Browse files- main_noweb.py +2 -2
main_noweb.py
CHANGED
@@ -160,7 +160,7 @@ def pose2d(video, kpt_threshold):
|
|
160 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
161 |
|
162 |
with open("".join(kpoints), 'r') as f:
|
163 |
-
data = json.load(
|
164 |
|
165 |
return "".join(out_file), data # "".join(kpoints)
|
166 |
|
@@ -274,7 +274,7 @@ if __name__ == "__main__":
|
|
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")
|
|
|
160 |
kpoints = glob.glob(os.path.join(add_dir, "*.json"))
|
161 |
|
162 |
with open("".join(kpoints), 'r') as f:
|
163 |
+
data = json.load(f)
|
164 |
|
165 |
return "".join(out_file), data # "".join(kpoints)
|
166 |
|
|
|
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")
|