Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -394,6 +394,10 @@ def generate_qr_code(filename):
|
|
394 |
|
395 |
return image
|
396 |
|
|
|
|
|
|
|
|
|
397 |
|
398 |
with gr.Blocks() as demo:
|
399 |
|
@@ -438,8 +442,7 @@ with gr.Blocks() as demo:
|
|
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'))
|
|
|
394 |
|
395 |
return image
|
396 |
|
397 |
+
def on_change_make_qr(input):
|
398 |
+
|
399 |
+
print(input)
|
400 |
+
|
401 |
|
402 |
with gr.Blocks() as demo:
|
403 |
|
|
|
442 |
inputs=[email_input, company_input, output_description, output_gallery],
|
443 |
outputs=[download_file,gr.Image(type="numpy", label="Generated QR Code")]
|
444 |
)
|
445 |
+
download_file.change(on_change_make_qr)
|
|
|
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'))
|