dev427tools commited on
Commit
8a40435
·
verified ·
1 Parent(s): 0452035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,7 +60,7 @@ def encode_image(image, input_text, key):
60
  buf.seek(0)
61
  dbx_status = save_to_dropbox(buf.getvalue(), key)
62
 
63
- return temp_file.name, gr.update(visible=True, value="Success! Download your image below."), dbx_status
64
  except Exception as e:
65
  return None, gr.update(visible=True, value=f"Error: {str(e)}"), ""
66
 
@@ -91,7 +91,7 @@ with gr.Blocks() as demo:
91
  start_btn = gr.Button("Start")
92
  download_link = gr.File(label="Download image with embedded text", visible=False)
93
  enc_status = gr.Textbox(label="Status", interactive=False, visible=True)
94
- dbx_status = gr.Textbox(label="Dropbox Status", interactive=False, visible=True)
95
 
96
  with gr.Tab("DEC (Decode)"):
97
  with gr.Row():
 
60
  buf.seek(0)
61
  dbx_status = save_to_dropbox(buf.getvalue(), key)
62
 
63
+ return temp_file.name, gr.update(visible=True, value="Success! Download your image above.") #, dbx_status
64
  except Exception as e:
65
  return None, gr.update(visible=True, value=f"Error: {str(e)}"), ""
66
 
 
91
  start_btn = gr.Button("Start")
92
  download_link = gr.File(label="Download image with embedded text", visible=False)
93
  enc_status = gr.Textbox(label="Status", interactive=False, visible=True)
94
+ #dbx_status = gr.Textbox(label="Dropbox Status", interactive=False, visible=True)
95
 
96
  with gr.Tab("DEC (Decode)"):
97
  with gr.Row():