Pash1986 commited on
Commit
c4fad4d
1 Parent(s): 133c5a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -303,7 +303,7 @@ def create_pdf(images, description, email, company):
303
  absolute_path = os.path.abspath(filename)
304
 
305
  qr_code_result = generate_qr_code(absolute_path)
306
- return qr_code_result
307
 
308
 
309
  # Function to generate image description using Claude 3 Sonnet
@@ -432,13 +432,15 @@ with gr.Blocks() as demo:
432
  )
433
 
434
 
435
-
436
  record_button.click(
437
  fn=record_participant,
438
  inputs=[email_input, company_input, output_description, output_gallery],
439
- outputs=gr.Image(type="numpy", label="Generated QR Code")
440
  )
441
 
 
 
442
  with gr.Tab("Code"):
443
  gr.Code(label="Code", language="python", value=fetch_url_data('https://huggingface.co/spaces/MongoDB/aws-bedrock-celeb-matcher/raw/main/app.py'))
444
 
 
303
  absolute_path = os.path.abspath(filename)
304
 
305
  qr_code_result = generate_qr_code(absolute_path)
306
+ return filename,qr_code_result
307
 
308
 
309
  # Function to generate image description using Claude 3 Sonnet
 
432
  )
433
 
434
 
435
+ download_file=gr.File(label="Download file")
436
  record_button.click(
437
  fn=record_participant,
438
  inputs=[email_input, company_input, output_description, output_gallery],
439
+ outputs=[download_file,gr.Image(type="numpy", label="Generated QR Code")]
440
  )
441
 
442
+ print(download_file)
443
+
444
  with gr.Tab("Code"):
445
  gr.Code(label="Code", language="python", value=fetch_url_data('https://huggingface.co/spaces/MongoDB/aws-bedrock-celeb-matcher/raw/main/app.py'))
446