Allen Park commited on
Commit
7a4d50b
·
1 Parent(s): 4cb73b2

add visible=False for markdown when no file is uploaded yet

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -165,7 +165,7 @@ with gr.Blocks(css=css) as demo:
165
  question = gr.Textbox(label="Question", scale=9)
166
  u = gr.UploadButton("Upload", file_count="single", scale=1)
167
  with gr.Group():
168
- file_name = gr.Markdown("")
169
  c = gr.ClearButton([u, file_name], visible=False, scale=1)
170
  # d = gr.DownloadButton("Download the file", visible=False, scale=1)
171
  with gr.Row():
 
165
  question = gr.Textbox(label="Question", scale=9)
166
  u = gr.UploadButton("Upload", file_count="single", scale=1)
167
  with gr.Group():
168
+ file_name = gr.Markdown("", visible=False)
169
  c = gr.ClearButton([u, file_name], visible=False, scale=1)
170
  # d = gr.DownloadButton("Download the file", visible=False, scale=1)
171
  with gr.Row():