Yohan Runhaar commited on
Commit
d5cc629
Β·
1 Parent(s): 0d165e9
Files changed (1) hide show
  1. app.py +29 -8
app.py CHANGED
@@ -146,16 +146,37 @@ outputs = [
146
  gr.Image(type="filepath", label="Class Coverage Graph"),
147
  ]
148
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  title = "Coral AI Demo"
150
 
151
  examples = generate_examples()
152
 
153
- demo_app = gr.Interface(
154
- fn=coral_ai_inference,
155
- inputs=inputs,
156
- outputs=outputs,
157
- title=title,
158
- examples=examples,
159
- cache_examples=True,
160
- )
 
 
 
 
 
161
  demo_app.queue().launch(debug=True)
 
146
  gr.Image(type="filepath", label="Class Coverage Graph"),
147
  ]
148
 
149
+ # Icons with links
150
+ icons = """
151
+ <a href="https://reef.support" target="_blank" style="margin-right: 20px;">
152
+ <img src="https://img.icons8.com/ios-filled/50/000000/home.png" alt="Home" style="width: 30px; height: 30px;">
153
+ </a>
154
+ <a href="https://docs.reef.support" target="_blank" style="margin-right: 20px;">
155
+ <img src="https://img.icons8.com/ios-filled/50/000000/document.png" alt="Documentation" style="width: 30px; height: 30px;">
156
+ </a>
157
+ <a href="https://github.com/reefsupport" target="_blank" style="margin-right: 20px;">
158
+ <img src="https://img.icons8.com/ios-filled/50/000000/github.png" alt="GitHub" style="width: 30px; height: 30px;">
159
+ </a>
160
+ <a href="https://url.reef.support/join-discord" target="_blank">
161
+ <img src="https://img.icons8.com/ios-filled/50/000000/discord-logo.png" alt="Discord" style="width: 30px; height: 30px;">
162
+ </a>
163
+ """
164
+
165
  title = "Coral AI Demo"
166
 
167
  examples = generate_examples()
168
 
169
+ demo_app = gr.Blocks()
170
+
171
+ with demo_app:
172
+ gr.Markdown(icons)
173
+ gr.Interface(
174
+ fn=coral_ai_inference,
175
+ inputs=inputs,
176
+ outputs=outputs,
177
+ title=title,
178
+ examples=examples,
179
+ cache_examples=True,
180
+ )
181
+
182
  demo_app.queue().launch(debug=True)