ManishThota commited on
Commit
ce45613
·
verified ·
1 Parent(s): 86b1263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -101,6 +101,15 @@ title = "GSoC Super Raid Annotator"
101
  description = "Annotate Videos"
102
  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>"
103
 
 
 
 
 
 
 
 
 
 
104
  # Launch the interface
105
  interface = gr.Interface(
106
  fn=process_video_and_questions, # Updated function to handle the query construction
@@ -110,7 +119,7 @@ interface = gr.Interface(
110
  title=title,
111
  description=description,
112
  article=article,
113
- theme="Soft",
114
  allow_flagging="never",
115
  )
116
  interface.launch(debug=False)
 
101
  description = "Annotate Videos"
102
  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>"
103
 
104
+ # Define your desired red color as an RGB tuple (values from 0 to 255) or a hex code
105
+ my_red_color = (255, 0, 0) # Example for pure red
106
+ # my_red_color = "#FF0000" # You can also use a hex code
107
+
108
+ custom_theme = gr.themes.Soft(
109
+ # Set the primary hue of the Soft theme to your red color
110
+ primary_hue=my_red_color,
111
+ )
112
+
113
  # Launch the interface
114
  interface = gr.Interface(
115
  fn=process_video_and_questions, # Updated function to handle the query construction
 
119
  title=title,
120
  description=description,
121
  article=article,
122
+ theme=custom_theme,
123
  allow_flagging="never",
124
  )
125
  interface.launch(debug=False)