paloma99 commited on
Commit
4fbc0e8
·
verified ·
1 Parent(s): f38d24e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -37,24 +37,26 @@ chatbot_gradio_app = gr.Interface(
37
  title="Chatbot",
38
  )
39
 
 
 
 
 
 
 
40
 
41
- custom_css = """
42
- body {
43
- background-color: #00ff00; /* Light green background */
44
- font-family: 'Arial', sans-serif; /* Modern sans-serif font */
45
- }
46
 
47
- .gr-tab-title {
48
- color: #004d00; /* Dark green title color */
49
- }
50
-
51
- .gr-title {
52
- color: #004d00; /* Dark green title color */
53
- }
54
  """
55
 
56
- # Apply custom CSS to the Gradio app
57
- gr.set_css(custom_css)
 
58
 
59
  # Combine both interfaces into a single app
60
  gr.TabbedInterface(
 
37
  title="Chatbot",
38
  )
39
 
40
+ custom_html = """
41
+ <style>
42
+ body {
43
+ background-color: #00ff00; /* Light green background */
44
+ font-family: 'Arial', sans-serif; /* Modern sans-serif font */
45
+ }
46
 
47
+ .gr-tab-title {
48
+ color: #004d00; /* Dark green title color */
49
+ }
 
 
50
 
51
+ .gr-title {
52
+ color: #004d00; /* Dark green title color */
53
+ }
54
+ </style>
 
 
 
55
  """
56
 
57
+ # Add custom HTML to each Gradio interface
58
+ image_gradio_app.style(custom_html)
59
+ chatbot_gradio_app.style(custom_html)
60
 
61
  # Combine both interfaces into a single app
62
  gr.TabbedInterface(