Skip to content

Commit 209f34f

Browse files
committed
fix an issue where it was impossible to upload file in renard ui
1 parent 41540ee commit 209f34f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

renard/ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ def render_input_text(input_type: str):
353353
label="Pride and Prejudice", value=pp, interactive=False
354354
)
355355
input_text.value = pp
356-
elif input_type == "Upload file":
356+
elif input_type == "Upload .txt file":
357357
upload_area = gr.File(
358-
label="Input text file", file_types=["text"]
358+
label="Input .txt file", file_types=["text"]
359359
)
360360
upload_area.upload(
361361
lambda path: open(path).read(), [upload_area], [input_text]

0 commit comments

Comments
 (0)