OppaAI commited on
Commit
8e5e8e7
·
verified ·
1 Parent(s): dfddc79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
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 = vlm_result
66
- human_out = vlm_result
67
- objects_str = vlm_result
68
- environment_out = vlm_result
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