prithivMLmods commited on
Commit
ec311e6
·
verified ·
1 Parent(s): b1d962e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -28,14 +28,6 @@ import re
28
  import ast
29
  import html
30
 
31
- #load css
32
- def load_css():
33
- css_path = os.path.join(os.path.dirname(__file__), "static", "styles.css")
34
- if os.path.exists(css_path):
35
- with open(css_path, "r", encoding="utf-8") as f:
36
- return f.read()
37
- return ""
38
-
39
  # Constants for text generation
40
  MAX_MAX_NEW_TOKENS = 2048
41
  DEFAULT_MAX_NEW_TOKENS = 1024
@@ -320,12 +312,19 @@ video_examples = [
320
  ["Identify the main actions in the coca cola ad...", "example/2.mp4"]
321
  ]
322
 
323
- #load css()
324
- custom_css = load_css()
 
 
 
 
 
 
 
325
 
326
  # Create the Gradio Interface
327
- with gr.Blocks(css=custom_css, theme="bethecloud/storj_theme") as demo:
328
- gr.Markdown("# **[OCR Net 4x](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
329
  with gr.Row():
330
  with gr.Column():
331
  with gr.Tabs():
 
28
  import ast
29
  import html
30
 
 
 
 
 
 
 
 
 
31
  # Constants for text generation
32
  MAX_MAX_NEW_TOKENS = 2048
33
  DEFAULT_MAX_NEW_TOKENS = 1024
 
312
  ["Identify the main actions in the coca cola ad...", "example/2.mp4"]
313
  ]
314
 
315
+ css = """
316
+ .submit-btn {
317
+ background-color: #2980b9 !important;
318
+ color: white !important;
319
+ }
320
+ .submit-btn:hover {
321
+ background-color: #3498db !important;
322
+ }
323
+ """
324
 
325
  # Create the Gradio Interface
326
+ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
327
+ gr.Markdown("# **[Multimodal OCR2](https://huggingface.co/collections/prithivMLmods/multimodal-implementations-67c9982ea04b39f0608badb0)**")
328
  with gr.Row():
329
  with gr.Column():
330
  with gr.Tabs():