Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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():
|