Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,15 +57,15 @@ async def process_webcam_stream_async(image):
|
|
| 57 |
|
| 58 |
import json
|
| 59 |
# Access the first item in the content list for the raw JSON string
|
| 60 |
-
raw_text = response.content[0].text
|
| 61 |
-
response_dict = json.loads(raw_text)
|
| 62 |
|
| 63 |
-
vlm_result = response_dict.get("result", {})
|
| 64 |
|
| 65 |
-
description_out =
|
| 66 |
-
human_out =
|
| 67 |
-
objects_str =
|
| 68 |
-
environment_out =
|
| 69 |
|
| 70 |
#objects_str = ", ".join(objects_list) if isinstance(objects_list, list) else str(objects_list)
|
| 71 |
|
|
|
|
| 57 |
|
| 58 |
import json
|
| 59 |
# Access the first item in the content list for the raw JSON string
|
| 60 |
+
#raw_text = response.content[0].text
|
| 61 |
+
#response_dict = json.loads(raw_text)
|
| 62 |
|
| 63 |
+
#vlm_result = response_dict.get("result", {})
|
| 64 |
|
| 65 |
+
description_out = response
|
| 66 |
+
human_out = response
|
| 67 |
+
objects_str = response
|
| 68 |
+
environment_out = response
|
| 69 |
|
| 70 |
#objects_str = ", ".join(objects_list) if isinstance(objects_list, list) else str(objects_list)
|
| 71 |
|