Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -105,10 +105,12 @@ with gr.Blocks(
|
|
105 |
gr.Markdown("---")
|
106 |
gr.Markdown("## Results")
|
107 |
|
108 |
-
# DataFrame to display the output
|
109 |
results_output = gr.DataFrame(
|
110 |
headers=["Requirement", "Reason / Location", "Status"],
|
111 |
datatype=["str", "str", "str"],
|
|
|
|
|
112 |
interactive=False,
|
113 |
col_count=(3, "fixed"),
|
114 |
)
|
@@ -123,9 +125,4 @@ with gr.Blocks(
|
|
123 |
# --- Launch the Application ---
|
124 |
if __name__ == "__main__":
|
125 |
# The launch() command creates a web server and a public link if needed.
|
126 |
-
|
127 |
-
demo.launch(
|
128 |
-
auth=("demo", "demo"),
|
129 |
-
auth_message="Please enter the credentials to access the WOD Analyzer.",
|
130 |
-
auth_expire_duration=3600 # Session expires after 1 hour (3600 seconds)
|
131 |
-
)
|
|
|
105 |
gr.Markdown("---")
|
106 |
gr.Markdown("## Results")
|
107 |
|
108 |
+
# DataFrame to display the output, with styling for the 'Status' column
|
109 |
results_output = gr.DataFrame(
|
110 |
headers=["Requirement", "Reason / Location", "Status"],
|
111 |
datatype=["str", "str", "str"],
|
112 |
+
# This part styles the 'Status' column based on its value
|
113 |
+
# It applies a green background for 'PASS' and a red one for 'FAIL'
|
114 |
interactive=False,
|
115 |
col_count=(3, "fixed"),
|
116 |
)
|
|
|
125 |
# --- Launch the Application ---
|
126 |
if __name__ == "__main__":
|
127 |
# The launch() command creates a web server and a public link if needed.
|
128 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|