diff --git a/ragna/deploy/_ui/components/file_uploader.py b/ragna/deploy/_ui/components/file_uploader.py
index 1e36106e..383b6789 100644
--- a/ragna/deploy/_ui/components/file_uploader.py
+++ b/ragna/deploy/_ui/components/file_uploader.py
@@ -30,14 +30,7 @@ def can_proceed_to_upload(self):
@param.depends("allowed_documents", watch=True)
def update_allowed_documents_str(self):
- if len(self.allowed_documents) == 1:
- self.allowed_documents_str = (
- "Only " + self.allowed_documents[0] + " files are allowed."
- )
- else:
- self.allowed_documents_str = "Allowed files : " + ", ".join(
- self.allowed_documents
- )
+ self.allowed_documents_str = ", ".join(self.allowed_documents)
@param.depends("uploaded_documents_json", watch=True)
async def did_finish_upload(self):
@@ -69,7 +62,7 @@ def perform_upload(self, event=None, after_upload_callback=None):
_child_config = {
"custom_js": "template",
"uploaded_documents_json": "template",
- "allowed_documents_str": "literal",
+ "allowed_documents_str": "template",
}
_template = """
@@ -151,14 +144,16 @@ def perform_upload(self, event=None, after_upload_callback=None):
Click to upload or drag and drop.