Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,6 +45,8 @@ def image_to_base64(image_path):
|
|
| 45 |
|
| 46 |
logo_b64 = image_to_base64("logo.jpg")
|
| 47 |
profile_b64 = image_to_base64("232px-Tv_the_muppet_show_bein_green.jpg")
|
|
|
|
|
|
|
| 48 |
|
| 49 |
# ==========================================
|
| 50 |
# 3. BACKEND LOGIC
|
|
@@ -178,7 +180,6 @@ body, .gradio-container { background-color: #f0f2f5; }
|
|
| 178 |
gap: 0px !important;
|
| 179 |
}
|
| 180 |
|
| 181 |
-
/* UPDATED: Forced White Background */
|
| 182 |
.content-card {
|
| 183 |
background-color: #ffffff !important;
|
| 184 |
background: #ffffff !important;
|
|
@@ -260,7 +261,7 @@ with gr.Blocks(title="Legacy Kitchen") as demo:
|
|
| 260 |
<span class="app-slogan">Turning Handwritten Notes into a Digital Cookbook.</span>
|
| 261 |
</div>
|
| 262 |
</div>
|
| 263 |
-
<div style="color: #65676b; font-weight: 600;">v4.
|
| 264 |
</div>
|
| 265 |
""")
|
| 266 |
|
|
@@ -354,7 +355,7 @@ with gr.Blocks(title="Legacy Kitchen") as demo:
|
|
| 354 |
else:
|
| 355 |
gr.Markdown("⚠️ Database is empty.")
|
| 356 |
|
| 357 |
-
# === VIEW 3: ABOUT ===
|
| 358 |
with gr.Group(visible=False) as about_view:
|
| 359 |
with gr.Group(elem_classes=["content-card"]):
|
| 360 |
gr.Markdown("""
|
|
@@ -365,6 +366,14 @@ with gr.Blocks(title="Legacy Kitchen") as demo:
|
|
| 365 |
### About Us
|
| 366 |
This app was developed by **Shahar Firshtman** and **Lior Feinstein**, 2nd year students for Economics and data science.
|
| 367 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 368 |
|
| 369 |
# --- RIGHT COLUMN ---
|
| 370 |
with gr.Column(scale=1, min_width=200):
|
|
|
|
| 45 |
|
| 46 |
logo_b64 = image_to_base64("logo.jpg")
|
| 47 |
profile_b64 = image_to_base64("232px-Tv_the_muppet_show_bein_green.jpg")
|
| 48 |
+
# NEW: Load the process preview image
|
| 49 |
+
process_b64 = image_to_base64("preview of process.jpg")
|
| 50 |
|
| 51 |
# ==========================================
|
| 52 |
# 3. BACKEND LOGIC
|
|
|
|
| 180 |
gap: 0px !important;
|
| 181 |
}
|
| 182 |
|
|
|
|
| 183 |
.content-card {
|
| 184 |
background-color: #ffffff !important;
|
| 185 |
background: #ffffff !important;
|
|
|
|
| 261 |
<span class="app-slogan">Turning Handwritten Notes into a Digital Cookbook.</span>
|
| 262 |
</div>
|
| 263 |
</div>
|
| 264 |
+
<div style="color: #65676b; font-weight: 600;">v4.4</div>
|
| 265 |
</div>
|
| 266 |
""")
|
| 267 |
|
|
|
|
| 355 |
else:
|
| 356 |
gr.Markdown("⚠️ Database is empty.")
|
| 357 |
|
| 358 |
+
# === VIEW 3: ABOUT (UPDATED) ===
|
| 359 |
with gr.Group(visible=False) as about_view:
|
| 360 |
with gr.Group(elem_classes=["content-card"]):
|
| 361 |
gr.Markdown("""
|
|
|
|
| 366 |
### About Us
|
| 367 |
This app was developed by **Shahar Firshtman** and **Lior Feinstein**, 2nd year students for Economics and data science.
|
| 368 |
""")
|
| 369 |
+
|
| 370 |
+
# Process Image
|
| 371 |
+
gr.HTML(f"""
|
| 372 |
+
<div style="margin-top: 20px;">
|
| 373 |
+
<h3 style="color: #444;">Process Overview</h3>
|
| 374 |
+
<img src="data:image/jpeg;base64,{process_b64}" style="width: 100%; height: auto; border-radius: 8px; border: 1px solid #ddd;">
|
| 375 |
+
</div>
|
| 376 |
+
""")
|
| 377 |
|
| 378 |
# --- RIGHT COLUMN ---
|
| 379 |
with gr.Column(scale=1, min_width=200):
|