Spaces:
Running
Running
Upload content.py
Browse files- content.py +14 -0
content.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
TITLE = """<h1 align="center" id="space-title">AssistantBench</h1>"""
|
2 |
+
|
3 |
+
|
4 |
+
def format_error(msg):
|
5 |
+
return f"<p style='color: red; font-size: 20px; text-align: center;'>{msg}</p>"
|
6 |
+
|
7 |
+
def format_warning(msg):
|
8 |
+
return f"<p style='color: orange; font-size: 20px; text-align: center;'>{msg}</p>"
|
9 |
+
|
10 |
+
def format_log(msg):
|
11 |
+
return f"<p style='color: green; font-size: 20px; text-align: center;'>{msg}</p>"
|
12 |
+
|
13 |
+
def model_hyperlink(link, model_name):
|
14 |
+
return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
|