Spaces:
Sleeping
Sleeping
Aaron Ploetz
commited on
Commit
·
a26286a
1
Parent(s):
6770e3b
working through Gradio errors
Browse files
app.py
CHANGED
|
@@ -83,16 +83,7 @@ async def generate_embedding(data: Dict[str, Any]):
|
|
| 83 |
content={"error": str(ex)}
|
| 84 |
)
|
| 85 |
|
| 86 |
-
with gradio.Blocks(title="Multi-Model Text Embeddings",
|
| 87 |
-
.json-holder {
|
| 88 |
-
max-height: 400px !important;
|
| 89 |
-
overflow-y: auto !important;
|
| 90 |
-
}
|
| 91 |
-
.json-holder .wrap {
|
| 92 |
-
max-height: 400px !important;
|
| 93 |
-
overflow-y: auto !important;
|
| 94 |
-
}
|
| 95 |
-
""") as gradio_app:
|
| 96 |
gradio.Markdown("# Multi-Model Text Embeddings")
|
| 97 |
gradio.Markdown("Generate embeddings for your text using the IBM Granite embedding models.")
|
| 98 |
|
|
|
|
| 83 |
content={"error": str(ex)}
|
| 84 |
)
|
| 85 |
|
| 86 |
+
with gradio.Blocks(title="Multi-Model Text Embeddings", css_path="./style.css") as gradio_app:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
gradio.Markdown("# Multi-Model Text Embeddings")
|
| 88 |
gradio.Markdown("Generate embeddings for your text using the IBM Granite embedding models.")
|
| 89 |
|
style.css
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.json-holder {
|
| 2 |
+
max-height: 400px !important;
|
| 3 |
+
overflow-y: auto !important;
|
| 4 |
+
}
|
| 5 |
+
.json-holder .wrap {
|
| 6 |
+
max-height: 400px !important;
|
| 7 |
+
overflow-y: auto !important;
|
| 8 |
+
}
|