Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -284,16 +284,14 @@ def process_document_stream(
|
|
| 284 |
if temp_image_path and os.path.exists(temp_image_path):
|
| 285 |
os.remove(temp_image_path)
|
| 286 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
|
| 288 |
-
# --- Gradio UI Definition ---
|
| 289 |
def create_gradio_interface():
|
| 290 |
-
"""Builds and returns the Gradio web interface."""
|
| 291 |
-
css = """
|
| 292 |
-
.main-container { max-width: 1400px; margin: 0 auto; }
|
| 293 |
-
.process-button { border: none !important; color: white !important; font-weight: bold !important; background-color: blue !important;}
|
| 294 |
-
.process-button:hover { background-color: darkblue !important; transform: translateY(-2px) !important; box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important; }
|
| 295 |
-
#gallery { min-height: 400px; }
|
| 296 |
-
"""
|
| 297 |
with gr.Blocks() as demo:
|
| 298 |
gr.HTML(f"""
|
| 299 |
<div class="title" style="text-align: center">
|
|
|
|
| 284 |
if temp_image_path and os.path.exists(temp_image_path):
|
| 285 |
os.remove(temp_image_path)
|
| 286 |
|
| 287 |
+
css = """
|
| 288 |
+
.main-container { max-width: 1400px; margin: 0 auto; }
|
| 289 |
+
.process-button { border: none !important; color: white !important; font-weight: bold !important; background-color: blue !important;}
|
| 290 |
+
.process-button:hover { background-color: darkblue !important; transform: translateY(-2px) !important; box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important; }
|
| 291 |
+
#gallery { min-height: 400px; }
|
| 292 |
+
"""
|
| 293 |
|
|
|
|
| 294 |
def create_gradio_interface():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 295 |
with gr.Blocks() as demo:
|
| 296 |
gr.HTML(f"""
|
| 297 |
<div class="title" style="text-align: center">
|