Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ with gr.Blocks() as demo:
|
|
| 86 |
# add an HTML output to receive the returned link/script
|
| 87 |
auth_link = gr.HTML("")
|
| 88 |
apiKey.click(fn=Authorise_link, inputs=payment_state, outputs=auth_link)
|
| 89 |
-
payment_api_key=gr.
|
| 90 |
authorise_button=gr.Button("Authorise Payment")
|
| 91 |
authorise_button.click(fn=set_api_key, inputs=(payment_state, payment_api_key), outputs=payment_state)
|
| 92 |
image_input = gr.Image(type="pil", label="Upload Image")
|
|
|
|
| 86 |
# add an HTML output to receive the returned link/script
|
| 87 |
auth_link = gr.HTML("")
|
| 88 |
apiKey.click(fn=Authorise_link, inputs=payment_state, outputs=auth_link)
|
| 89 |
+
payment_api_key = gr.Textbox(label="Authorization token", interactive=True, type="password")
|
| 90 |
authorise_button=gr.Button("Authorise Payment")
|
| 91 |
authorise_button.click(fn=set_api_key, inputs=(payment_state, payment_api_key), outputs=payment_state)
|
| 92 |
image_input = gr.Image(type="pil", label="Upload Image")
|