BhumikaMak commited on
Commit
65a7a99
·
verified ·
1 Parent(s): 7b76c30

resolve: page flow

Browse files
Files changed (1) hide show
  1. app.py +28 -4
app.py CHANGED
@@ -62,17 +62,21 @@ def view_model(selected_models):
62
  # CSS to style the Gradio components and HTML content
63
  custom_css = """
64
  body {
65
- background-image: url('https://api.deepai.org/job-view-file/a63aebee-08cf-4914-9439-8c791a9c7cf5/outputs/output.jpg'); /* Replace with your image URL */
66
  background-position: center;
67
- background-size: cover; /* Ensures the image covers the full screen */
68
- background-attachment: fixed; /* Keeps the background image fixed while scrolling */
69
- height: 100vh; /* Ensures full screen height */
 
 
70
  }
 
71
  .custom-row {
72
  display: flex;
73
  justify-content: center;
74
  padding: 20px;
75
  }
 
76
  .custom-button {
77
  background-color: #6a1b9a;
78
  color: white;
@@ -85,14 +89,34 @@ body {
85
  margin-left: auto;
86
  margin-right: auto;
87
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  .custom-row img {
89
  border-radius: 10px;
90
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
91
  }
 
92
  #highlighted-text {
93
  font-weight: bold;
94
  color: #1976d2;
95
  }
 
 
 
 
 
96
  """
97
 
98
  # Then in the Gradio interface:
 
62
  # CSS to style the Gradio components and HTML content
63
  custom_css = """
64
  body {
65
+ background-image: url('https://example.com/your-image.jpg'); /* Replace with your image URL */
66
  background-position: center;
67
+ background-size: cover;
68
+ background-attachment: fixed;
69
+ height: 100%; /* Ensure body height is 100% of the viewport */
70
+ margin: 0;
71
+ overflow-y: auto; /* Allow vertical scrolling */
72
  }
73
+
74
  .custom-row {
75
  display: flex;
76
  justify-content: center;
77
  padding: 20px;
78
  }
79
+
80
  .custom-button {
81
  background-color: #6a1b9a;
82
  color: white;
 
89
  margin-left: auto;
90
  margin-right: auto;
91
  }
92
+
93
+ /* Custom border styles for all Gradio components */
94
+ .gradio-container, .gradio-row, .gradio-column, .gradio-input, .gradio-image, .gradio-checkgroup, .gradio-button, .gradio-markdown {
95
+ border: 3px solid black !important; /* Border width and color */
96
+ border-radius: 8px !important; /* Rounded corners */
97
+ }
98
+
99
+ /* Additional customizations for images to enhance visibility of the border */
100
+ .gradio-image img {
101
+ border-radius: 8px !important;
102
+ border: 3px solid black !important; /* Border for image */
103
+ }
104
+
105
+ /* Custom Row for images and buttons */
106
  .custom-row img {
107
  border-radius: 10px;
108
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
109
  }
110
+
111
  #highlighted-text {
112
  font-weight: bold;
113
  color: #1976d2;
114
  }
115
+
116
+ .gradio-block {
117
+ max-height: 100vh; /* Allow scrolling within the Gradio blocks */
118
+ overflow-y: auto; /* Enable scrolling for the content if it overflows */
119
+ }
120
  """
121
 
122
  # Then in the Gradio interface: