Update app.py
Browse files
app.py
CHANGED
|
@@ -375,7 +375,7 @@ def process_image(image):
|
|
| 375 |
return None, report
|
| 376 |
|
| 377 |
# Create Gradio Interface
|
| 378 |
-
with gr.Blocks(title="Engine Scanning System"
|
| 379 |
gr.Markdown("""
|
| 380 |
# 🔧 Advanced Engine Scanning System
|
| 381 |
### Professional Computer Vision Solution for Engine Quality Control
|
|
@@ -419,8 +419,7 @@ with gr.Blocks(title="Engine Scanning System", theme=gr.themes.Soft()) as demo:
|
|
| 419 |
report_text = gr.Textbox(
|
| 420 |
label="Scan Report",
|
| 421 |
lines=25,
|
| 422 |
-
max_lines=30
|
| 423 |
-
show_copy_button=True
|
| 424 |
)
|
| 425 |
|
| 426 |
# Examples
|
|
@@ -469,4 +468,5 @@ with gr.Blocks(title="Engine Scanning System", theme=gr.themes.Soft()) as demo:
|
|
| 469 |
|
| 470 |
# Launch the app
|
| 471 |
if __name__ == "__main__":
|
| 472 |
-
demo.launch()
|
|
|
|
|
|
| 375 |
return None, report
|
| 376 |
|
| 377 |
# Create Gradio Interface
|
| 378 |
+
with gr.Blocks(title="Engine Scanning System") as demo:
|
| 379 |
gr.Markdown("""
|
| 380 |
# 🔧 Advanced Engine Scanning System
|
| 381 |
### Professional Computer Vision Solution for Engine Quality Control
|
|
|
|
| 419 |
report_text = gr.Textbox(
|
| 420 |
label="Scan Report",
|
| 421 |
lines=25,
|
| 422 |
+
max_lines=30
|
|
|
|
| 423 |
)
|
| 424 |
|
| 425 |
# Examples
|
|
|
|
| 468 |
|
| 469 |
# Launch the app
|
| 470 |
if __name__ == "__main__":
|
| 471 |
+
demo.launch()
|
| 472 |
+
|