CShorten commited on
Commit
f87edeb
Β·
1 Parent(s): f9a8114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -27,9 +27,10 @@ with gr.Blocks() as demo:
27
  gr.Markdown(arxiv_paper.summary)
28
  with gr.Row():
29
  more_button = gr.Button("More like this! 😎")
30
- more_button.click(hf_data_upload(int(user_id.value), arxiv_paper.title, 1))
 
31
  #button.click(flip_image, inputs=image_input, outputs=image_output)
32
  less_button = gr.Button("Less like this! πŸ˜•")
33
- less_button.click(hf_data_upload(int(user_id.value), arxiv_paper.title, 0))
34
 
35
  demo.launch()
 
27
  gr.Markdown(arxiv_paper.summary)
28
  with gr.Row():
29
  more_button = gr.Button("More like this! 😎")
30
+ # add user id value later
31
+ more_button.click(hf_data_upload(0, arxiv_paper.title, 1))
32
  #button.click(flip_image, inputs=image_input, outputs=image_output)
33
  less_button = gr.Button("Less like this! πŸ˜•")
34
+ less_button.click(hf_data_upload(0, arxiv_paper.title, 0))
35
 
36
  demo.launch()