a-guy-from-burma commited on
Commit
24a8c28
1 Parent(s): 082aa9b

add two sentences as default value

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ with gr.Blocks() as app:
12
  gr.Markdown("# Sentence Similarity Checker")
13
  gr.Markdown("Enter two sentences to calculate their similarity.")
14
  with gr.Row():
15
- input_text1 = gr.Textbox(label="Enter first sentence", placeholder="Type the first sentence here...")
16
- input_text2 = gr.Textbox(label="Enter second sentence", placeholder="Type the second sentence here...")
17
  output = gr.Text(label="Similarity Score")
18
  button = gr.Button("Calculate")
19
  button.click(sentence_similarity, inputs=[input_text1, input_text2], outputs=output)
 
12
  gr.Markdown("# Sentence Similarity Checker")
13
  gr.Markdown("Enter two sentences to calculate their similarity.")
14
  with gr.Row():
15
+ input_text1 = gr.Textbox(label="Enter first sentence", value="I believe healthy relationships are built on mutual respect and open communication, fostering a nurturing environment for personal growth.", placeholder="Type the first sentence here...")
16
+ input_text2 = gr.Textbox(label="Enter second sentence", value="In my opinion, a healthy relationship must involve both partners equally contributing to problem-solving and supporting each other's aspirations.", placeholder="Type the second sentence here...")
17
  output = gr.Text(label="Similarity Score")
18
  button = gr.Button("Calculate")
19
  button.click(sentence_similarity, inputs=[input_text1, input_text2], outputs=output)