Update app.py
Browse files
app.py
CHANGED
|
@@ -43,29 +43,6 @@ def spotify_auth(client_id, client_secret, code=None):
|
|
| 43 |
return f"Please authorize the app by clicking [here]({auth_url}) and then paste the code below."
|
| 44 |
|
| 45 |
|
| 46 |
-
# description ="""
|
| 47 |
-
# 1. Enter Client ID & Client Secret
|
| 48 |
-
# 2. Click 'Submit' & follow output instructions
|
| 49 |
-
# 3. After pasting the code, click 'Submit' again
|
| 50 |
-
# """
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
# def gradio_interface():
|
| 54 |
-
# interface = gr.Interface(fn=spotify_auth,
|
| 55 |
-
# inputs=[
|
| 56 |
-
# gr.Textbox(label="Client ID"),
|
| 57 |
-
# gr.Textbox(label="Client Secret"),
|
| 58 |
-
# gr.Textbox(label="Code")
|
| 59 |
-
# ],
|
| 60 |
-
# outputs=["markdown"],
|
| 61 |
-
# description=description,
|
| 62 |
-
# allow_flagging="never",
|
| 63 |
-
# theme="finlaymacklon/boxy_violet"
|
| 64 |
-
# )
|
| 65 |
-
# interface.launch()
|
| 66 |
-
# gradio_interface()
|
| 67 |
-
|
| 68 |
-
|
| 69 |
with gr.Blocks() as demo:
|
| 70 |
gr.Markdown("...")
|
| 71 |
|
|
|
|
| 43 |
return f"Please authorize the app by clicking [here]({auth_url}) and then paste the code below."
|
| 44 |
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
with gr.Blocks() as demo:
|
| 47 |
gr.Markdown("...")
|
| 48 |
|