jeanmidev commited on
Commit
66a882a
1 Parent(s): 6860d09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -51,6 +51,12 @@ def display_recommendations(cname, use_euclidian_distance, use_description_embed
51
  Recommended cards:{block_text}
52
  """
53
  return text_output, recommendations_image
 
 
 
 
 
 
54
  demo = gr.Interface(
55
  fn=display_recommendations,
56
  inputs=[gr.inputs.Dropdown(dfp_cards["cname"].tolist()),
@@ -58,5 +64,8 @@ demo = gr.Interface(
58
  "checkbox",
59
  gr.Slider(minimum=1, maximum=20, step=1, value=5)],
60
  outputs=["text", gr.Gallery(label="Recommendations")],
 
 
 
61
  )
62
  demo.launch()
 
51
  Recommended cards:{block_text}
52
  """
53
  return text_output, recommendations_image
54
+
55
+ title = "Marvel Snap deck starter"
56
+ description = """ Gradio demo for Marvel Snap deck starter. \n
57
+ To use it, simply select the card in the dropdown that you want to use to kickstart the deck."""
58
+ article = "<div style='text-align: center;'>Marvel Snap deck starter by <a href='https://www.linkedin.com/in/jeanmicheldaignan/' target='_blank'>Jean-Michel D</a> | <a href='https://www.the-odd-dataguy.com/2023/01/15/marvel_snap_cold_start/' target='_blank'>Article</a>"
59
+
60
  demo = gr.Interface(
61
  fn=display_recommendations,
62
  inputs=[gr.inputs.Dropdown(dfp_cards["cname"].tolist()),
 
64
  "checkbox",
65
  gr.Slider(minimum=1, maximum=20, step=1, value=5)],
66
  outputs=["text", gr.Gallery(label="Recommendations")],
67
+ title=title,
68
+ description=description,
69
+ article=article,
70
  )
71
  demo.launch()