davanstrien HF Staff commited on
Commit
6f5ef35
·
1 Parent(s): decee70

Refactor login and logout buttons to be in the

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -118,8 +118,9 @@ author_name = "Thomas Wolf"
118
  # gr.Interface(get_papers, inputs=inputs, outputs=gr.Markdown()).launch(debug=True)
119
 
120
  with gr.Blocks() as demo:
121
- gr.LoginButton()
122
- gr.LogoutButton()
 
123
  author_name = gr.Textbox(label="Author name", interactive=True)
124
  positive_arxiv_ids = gr.Textbox("1910.01108", label="ArXiv IDs", interactive=True)
125
  btn = gr.Button("Get papers")
 
118
  # gr.Interface(get_papers, inputs=inputs, outputs=gr.Markdown()).launch(debug=True)
119
 
120
  with gr.Blocks() as demo:
121
+ with gr.Row():
122
+ gr.LoginButton()
123
+ gr.LogoutButton()
124
  author_name = gr.Textbox(label="Author name", interactive=True)
125
  positive_arxiv_ids = gr.Textbox("1910.01108", label="ArXiv IDs", interactive=True)
126
  btn = gr.Button("Get papers")