Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,13 +153,9 @@ def format_results_html(results: List[Dict[str, Any]]) -> str:
|
|
| 153 |
'<style>',
|
| 154 |
'/* Light mode styles */',
|
| 155 |
'td,th{padding:8px;}th{background:#f4f1e9;}tr:nth-child(even){background:#f9f9f9;}tr:hover{background:#e6e2d3;}table{border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #e6e2d3;}td{vertical-align:top;}',
|
| 156 |
-
'
|
| 157 |
-
'
|
| 158 |
-
'
|
| 159 |
-
' tr:nth-child(even) { background: #232323; }',
|
| 160 |
-
' tr:hover { background: #333333; }',
|
| 161 |
-
' table { box-shadow: 0 2px 8px #111; }',
|
| 162 |
-
' td { color: #f4f1e9; }',
|
| 163 |
'}',
|
| 164 |
'</style>',
|
| 165 |
'<table style="border-collapse:collapse;width:100%;font-size:1em;">',
|
|
@@ -185,7 +181,7 @@ def search(query: str, books: List[str], limit: int, search_method: str) -> str:
|
|
| 185 |
results = find_similar(query, books, limit, search_method)
|
| 186 |
return format_results_html(results)
|
| 187 |
|
| 188 |
-
with gr.Blocks(title="Latin Vulgate Verse Similarity Search") as demo:
|
| 189 |
gr.Markdown("""
|
| 190 |
# Latin Vulgate Verse Similarity Search
|
| 191 |
|
|
|
|
| 153 |
'<style>',
|
| 154 |
'/* Light mode styles */',
|
| 155 |
'td,th{padding:8px;}th{background:#f4f1e9;}tr:nth-child(even){background:#f9f9f9;}tr:hover{background:#e6e2d3;}table{border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #e6e2d3;}td{vertical-align:top;}',
|
| 156 |
+
'html, body, #root, .gradio-container {',
|
| 157 |
+
' background: #fff !important;',
|
| 158 |
+
' color: #222 !important;',
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
'}',
|
| 160 |
'</style>',
|
| 161 |
'<table style="border-collapse:collapse;width:100%;font-size:1em;">',
|
|
|
|
| 181 |
results = find_similar(query, books, limit, search_method)
|
| 182 |
return format_results_html(results)
|
| 183 |
|
| 184 |
+
with gr.Blocks(title="Latin Vulgate Verse Similarity Search", theme=gr.themes.Soft()) as demo:
|
| 185 |
gr.Markdown("""
|
| 186 |
# Latin Vulgate Verse Similarity Search
|
| 187 |
|