karmiq commited on
Commit
52b4dce
·
1 Parent(s): 90dfdae

Use the Monchrome theme

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -66,15 +66,25 @@ def get_results(expression):
66
 
67
  examples = [
68
  "king - man + woman",
 
69
  "berlin - germany + france",
70
  ]
71
 
72
- with gr.Blocks() as app:
 
 
 
73
  with gr.Row():
74
  with gr.Column():
75
  input = gr.Textbox(value=examples[0], label="Expression")
76
  with gr.Row():
77
- btn = gr.Button("Run")
 
 
 
 
 
 
78
  with gr.Row():
79
  gr.Examples(examples, inputs=input)
80
 
 
66
 
67
  examples = [
68
  "king - man + woman",
69
+ "mother - woman + man",
70
  "berlin - germany + france",
71
  ]
72
 
73
+ with gr.Blocks(
74
+ css="button.gallery-item { color: var(--body-text-color) !important; }",
75
+ theme=gr.themes.Monochrome(radius_size=gr.themes.sizes.radius_sm),
76
+ ) as app:
77
  with gr.Row():
78
  with gr.Column():
79
  input = gr.Textbox(value=examples[0], label="Expression")
80
  with gr.Row():
81
+ btn = gr.Button("Run", variant="primary")
82
+ with gr.Row():
83
+ gr.Markdown(
84
+ """
85
+ Demonstration of computing cosine similarity of embeddings from the [GloVe](https://nlp.stanford.edu/projects/glove/) dataset.
86
+ """
87
+ )
88
  with gr.Row():
89
  gr.Examples(examples, inputs=input)
90