Spaces:
Sleeping
Sleeping
Commit ·
0a0edd0
1
Parent(s): 8f79ebc
change theme
Browse files
app.py
CHANGED
|
@@ -84,9 +84,9 @@ custom_theme = gr.themes.Base(
|
|
| 84 |
button_primary_text_color="white",
|
| 85 |
)
|
| 86 |
|
| 87 |
-
with gr.Blocks(
|
| 88 |
gr.Markdown(
|
| 89 |
-
"<h1 style='text-align:center;'>
|
| 90 |
)
|
| 91 |
|
| 92 |
with gr.Row():
|
|
@@ -95,11 +95,11 @@ with gr.Blocks(theme=custom_theme, css="#explainbox {height: 350px;}") as demo:
|
|
| 95 |
with gr.Column():
|
| 96 |
cls_output = gr.Label(num_top_classes=3, label="Classifier Prediction")
|
| 97 |
|
|
|
|
| 98 |
explain_output = gr.Textbox(
|
| 99 |
-
label="Detailed
|
| 100 |
elem_id="explainbox",
|
| 101 |
-
lines=16
|
| 102 |
-
show_copy_button=True,
|
| 103 |
)
|
| 104 |
|
| 105 |
analyze_btn = gr.Button("Analyze", variant="primary")
|
|
@@ -110,5 +110,4 @@ with gr.Blocks(theme=custom_theme, css="#explainbox {height: 350px;}") as demo:
|
|
| 110 |
outputs=[cls_output, explain_output]
|
| 111 |
)
|
| 112 |
|
| 113 |
-
|
| 114 |
-
demo.launch()
|
|
|
|
| 84 |
button_primary_text_color="white",
|
| 85 |
)
|
| 86 |
|
| 87 |
+
with gr.Blocks() as demo:
|
| 88 |
gr.Markdown(
|
| 89 |
+
"<h1 style='text-align:center;'>AI Waste Classifier</h1>"
|
| 90 |
)
|
| 91 |
|
| 92 |
with gr.Row():
|
|
|
|
| 95 |
with gr.Column():
|
| 96 |
cls_output = gr.Label(num_top_classes=3, label="Classifier Prediction")
|
| 97 |
|
| 98 |
+
gr.Markdown("<h1 style='text-align:center;'>Disposal Advisor</h1>")
|
| 99 |
explain_output = gr.Textbox(
|
| 100 |
+
label="Detailed suggestions",
|
| 101 |
elem_id="explainbox",
|
| 102 |
+
lines=16
|
|
|
|
| 103 |
)
|
| 104 |
|
| 105 |
analyze_btn = gr.Button("Analyze", variant="primary")
|
|
|
|
| 110 |
outputs=[cls_output, explain_output]
|
| 111 |
)
|
| 112 |
|
| 113 |
+
demo.launch(theme=custom_theme, css="#explainbox {height: 350px;}")
|
|
|