luisoala commited on
Commit
f4f2229
·
1 Parent(s): b4d7111
Files changed (1) hide show
  1. app.py +12 -30
app.py CHANGED
@@ -54,6 +54,10 @@ def create_ui():
54
  # Define CSS for the validation UI
55
  gr.HTML("""
56
  <style>
 
 
 
 
57
  .validation-step {
58
  margin-bottom: 15px;
59
  border: 1px solid #e0e0e0;
@@ -66,7 +70,11 @@ def create_ui():
66
  display: flex;
67
  align-items: center;
68
  cursor: pointer;
69
- justify-content: space-between;
 
 
 
 
70
  }
71
  .step-status {
72
  margin-right: 10px;
@@ -81,34 +89,8 @@ def create_ui():
81
  font-size: 16px;
82
  text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
83
  }
84
- .status-waiting {
85
- background-color: #9e9e9e;
86
- }
87
- .status-success {
88
- background-color: #4caf50;
89
- }
90
- .status-error {
91
- background-color: #f44336;
92
- }
93
- .step-title {
94
- font-weight: 500;
95
- }
96
- .step-details {
97
- padding: 15px;
98
- background-color: #fafafa;
99
- border-top: 1px solid #e0e0e0;
100
- white-space: pre-wrap;
101
- font-family: monospace;
102
- max-height: 300px;
103
- overflow-y: auto;
104
- }
105
- .progress-container {
106
- margin: 10px 0;
107
- font-weight: 500;
108
- text-align: center;
109
- }
110
  .arrow-indicator {
111
- margin-left: auto;
112
  font-size: 16px;
113
  transition: transform 0.3s ease;
114
  }
@@ -146,11 +128,11 @@ def create_ui():
146
  html += f'''
147
  <div class="validation-step" id="step-{i}">
148
  <div class="step-header" onclick="toggleDetails('{i}')">
149
- <div class="step-left" style="display: flex; align-items: center;">
150
  <div class="step-status {status_class}">{status_icon}</div>
151
  <div class="step-title">{test_name}</div>
 
152
  </div>
153
- <div class="arrow-indicator" id="arrow-{i}">▶</div>
154
  </div>
155
  <div class="step-details" id="details-{i}" style="display: none;">
156
  {message}
 
54
  # Define CSS for the validation UI
55
  gr.HTML("""
56
  <style>
57
+ .gradio-container {
58
+ max-width: 800px;
59
+ margin: 0 auto;
60
+ }
61
  .validation-step {
62
  margin-bottom: 15px;
63
  border: 1px solid #e0e0e0;
 
70
  display: flex;
71
  align-items: center;
72
  cursor: pointer;
73
+ }
74
+ .step-left {
75
+ display: flex;
76
+ align-items: center;
77
+ flex-grow: 1;
78
  }
79
  .step-status {
80
  margin-right: 10px;
 
89
  font-size: 16px;
90
  text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
91
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  .arrow-indicator {
93
+ margin-left: 10px;
94
  font-size: 16px;
95
  transition: transform 0.3s ease;
96
  }
 
128
  html += f'''
129
  <div class="validation-step" id="step-{i}">
130
  <div class="step-header" onclick="toggleDetails('{i}')">
131
+ <div class="step-left">
132
  <div class="step-status {status_class}">{status_icon}</div>
133
  <div class="step-title">{test_name}</div>
134
+ <div class="arrow-indicator" id="arrow-{i}">▶</div>
135
  </div>
 
136
  </div>
137
  <div class="step-details" id="details-{i}" style="display: none;">
138
  {message}