prernajeet14 commited on
Commit
3eafac0
·
verified ·
1 Parent(s): bd83490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -830,10 +830,8 @@ with gr.Blocks(css=fixed_css, title="Coding Copilot Pro", theme=gr.themes.Base()
830
 
831
  # Show download file when available
832
  def update_download_visibility(file_path, status):
833
- if file_path:
834
- return gr.File.update(visible=True, value=file_path), status
835
- return gr.File.update(visible=False), status
836
-
837
  # Update download file visibility when status changes
838
  download_status.change(
839
  update_download_visibility,
 
830
 
831
  # Show download file when available
832
  def update_download_visibility(file_path, status):
833
+ return file_path, status
834
+
 
 
835
  # Update download file visibility when status changes
836
  download_status.change(
837
  update_download_visibility,