Illia56 commited on
Commit
c5a0f5f
Β·
1 Parent(s): f6dc6b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -12
app.py CHANGED
@@ -88,19 +88,57 @@ async def generate_predictions(book_name, author, language_choice, detail_option
88
 
89
 
90
  return image_links, combined_summary, telegraph_url
91
- notion_theme = {
92
- "primary": "#e0e0e0", # Light gray
93
- "secondary": "#ffffff", # White
94
- "input_background": "#f5f5f5", # Slightly darker gray for input fields
95
- "input_text": "#333333", # Dark text for inputs
96
- "output_background": "#ffffff", # White background for outputs
97
- "output_text": "#333333", # Dark text for outputs
98
- "button_background": "#6366F1", # A subtle color for buttons
99
- "button_text": "#ffffff", # White text for buttons
100
- "highlight": "#9CA3AF", # A subtle highlight color
101
- "font": "Arial, sans-serif", # A clean, sans-serif font
 
 
 
 
 
 
102
  }
103
- with gr.Blocks(title="πŸ“š BookMindAI", theme=gr.Base.from_dict(notion_theme)).queue() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
 
105
  with gr.Row():
106
  with gr.Column():
 
88
 
89
 
90
  return image_links, combined_summary, telegraph_url
91
+ css = """/* General styling to mimic Notion's aesthetic */
92
+
93
+ body {
94
+ background-color: #f5f5f5;
95
+ font-family: 'Arial', sans-serif;
96
+ }
97
+
98
+ /* Input fields styling */
99
+
100
+ input, select, textarea {
101
+ background-color: #ffffff;
102
+ border: 1px solid #e1e4e8;
103
+ border-radius: 5px;
104
+ padding: 8px 12px;
105
+ font-size: 14px;
106
+ color: #333;
107
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
108
  }
109
+
110
+ /* Button styling */
111
+
112
+ button {
113
+ background-color: #6366F1;
114
+ color: #ffffff;
115
+ border: none;
116
+ border-radius: 5px;
117
+ padding: 8px 16px;
118
+ cursor: pointer;
119
+ transition: background-color 0.3s;
120
+ }
121
+
122
+ button:hover {
123
+ background-color: #5555d6; /* Slightly darker shade for hover */
124
+ }
125
+
126
+ /* Output cards styling */
127
+
128
+ .output-card {
129
+ background-color: #ffffff;
130
+ border-radius: 5px;
131
+ box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
132
+ padding: 16px;
133
+ margin: 16px 0;
134
+ }
135
+
136
+ /* Gallery and other components can have additional styling based on their structure */
137
+
138
+ /* ... */
139
+
140
+ """
141
+ with gr.Blocks(title="πŸ“š BookMindAI", theme=gr.themes.Base(),css=css).queue() as demo:
142
 
143
  with gr.Row():
144
  with gr.Column():