davanstrien HF Staff commited on
Commit
16fdb1b
·
1 Parent(s): 1fee4b2

Update get_papers function arguments.

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -79,7 +79,7 @@ def groupby_hf_user_papers(papers, hf_user_name):
79
 
80
 
81
  def get_papers(
82
- author_name, positive_arxiv_ids, hf_user_name: Optional[gr.OAuthProfile]
83
  ):
84
  hf_user_name = hf_user_name.preferred_username
85
  positive_arxiv_ids = positive_arxiv_ids.split(",")
@@ -130,7 +130,9 @@ with gr.Blocks() as demo:
130
  gr.LoginButton(size="sm")
131
  gr.LogoutButton(size="sm")
132
  author_name = gr.Textbox(
133
- placeholder="daniel van strien", label="Your name", interactive=True
 
 
134
  )
135
  positive_arxiv_ids = gr.Textbox(
136
  placeholder="1910.01108",
 
79
 
80
 
81
  def get_papers(
82
+ author_name: str, positive_arxiv_ids: str, hf_user_name: Optional[gr.OAuthProfile]
83
  ):
84
  hf_user_name = hf_user_name.preferred_username
85
  positive_arxiv_ids = positive_arxiv_ids.split(",")
 
130
  gr.LoginButton(size="sm")
131
  gr.LogoutButton(size="sm")
132
  author_name = gr.Textbox(
133
+ placeholder="Daniel van Strien",
134
+ label="The name you publish under",
135
+ interactive=True,
136
  )
137
  positive_arxiv_ids = gr.Textbox(
138
  placeholder="1910.01108",