Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ def generate_qr_code(filename):
|
|
380 |
box_size=4,
|
381 |
border=2,
|
382 |
)
|
383 |
-
qr.add_data(
|
384 |
qr.make(fit=True)
|
385 |
|
386 |
img_qr = qr.make_image(fill_color="black", back_color="white")
|
@@ -442,7 +442,7 @@ with gr.Blocks() as demo:
|
|
442 |
inputs=[email_input, company_input, output_description, output_gallery],
|
443 |
outputs=[download_file]
|
444 |
)
|
445 |
-
download_file.change(on_change_make_qr, inputs=download_file, outputs=gr.Image(type="numpy", label="Generated QR Code"))
|
446 |
|
447 |
with gr.Tab("Code"):
|
448 |
gr.Code(label="Code", language="python", value=fetch_url_data('https://huggingface.co/spaces/MongoDB/aws-bedrock-celeb-matcher/raw/main/app.py'))
|
|
|
380 |
box_size=4,
|
381 |
border=2,
|
382 |
)
|
383 |
+
qr.add_data(filename)
|
384 |
qr.make(fit=True)
|
385 |
|
386 |
img_qr = qr.make_image(fill_color="black", back_color="white")
|
|
|
442 |
inputs=[email_input, company_input, output_description, output_gallery],
|
443 |
outputs=[download_file]
|
444 |
)
|
445 |
+
download_file.change(on_change_make_qr, inputs=download_file, outputs=gr.Image(type="numpy", label="Generated QR Code", tool_opts={"style": "max-width: 300px; max-height: 300px;"}))
|
446 |
|
447 |
with gr.Tab("Code"):
|
448 |
gr.Code(label="Code", language="python", value=fetch_url_data('https://huggingface.co/spaces/MongoDB/aws-bedrock-celeb-matcher/raw/main/app.py'))
|