ManishThota commited on
Commit
b94a51a
·
verified ·
1 Parent(s): d0ede9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -21,7 +21,8 @@ def process_video_and_get_json(video, sitting, hands, location, screen):
21
  final_query = query + " " + " ".join(additional_info)
22
 
23
  video_description = describe_video(video, final_query)
24
- json_response = process_description(video_description)
 
25
 
26
  return video_description, json_response
27
 
@@ -56,8 +57,8 @@ description = "Annotate Videos"
56
  article = "<p style='text-align: center'><a href='https://github.com/OpenBMB/MiniCPM-V' target='_blank'>Model GitHub Repo</a> | <a href='https://huggingface.co/openbmb/MiniCPM-V-2_6' target='_blank'>Model Page</a></p>"
57
 
58
  custom_theme = gr.themes.Soft(
59
- primary_hue="yellow",
60
- secondary_hue="yellow",
61
  neutral_hue="zinc"
62
  )
63
 
 
21
  final_query = query + " " + " ".join(additional_info)
22
 
23
  video_description = describe_video(video, final_query)
24
+ if video_description:
25
+ json_response = process_description(video_description)
26
 
27
  return video_description, json_response
28
 
 
57
  article = "<p style='text-align: center'><a href='https://github.com/OpenBMB/MiniCPM-V' target='_blank'>Model GitHub Repo</a> | <a href='https://huggingface.co/openbmb/MiniCPM-V-2_6' target='_blank'>Model Page</a></p>"
58
 
59
  custom_theme = gr.themes.Soft(
60
+ primary_hue="indigo",
61
+ secondary_hue="indigo",
62
  neutral_hue="zinc"
63
  )
64