research14 commited on
Commit
df2a22b
·
1 Parent(s): a7b414a

added default options

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -2,6 +2,12 @@ import gradio as gr
2
 
3
  theme = gr.themes.Soft()
4
 
 
 
 
 
 
 
5
  # Define a function that echoes the input text
6
  def echo_text(input_text):
7
  return input_text
@@ -10,6 +16,7 @@ with gr.Interface(
10
  fn=echo_text,
11
  inputs=gr.Textbox(placeholder="Enter text here..."),
12
  outputs=gr.Textbox(),
 
13
  live=True,
14
  title="LLM Evaluator with Linguistic Scrutiny",
15
  theme=theme
 
2
 
3
  theme = gr.themes.Soft()
4
 
5
+ query_examples=[
6
+ ("Default Option 1"),
7
+ ("Default Option 2"),
8
+ ("Default Option 3")
9
+ ]
10
+
11
  # Define a function that echoes the input text
12
  def echo_text(input_text):
13
  return input_text
 
16
  fn=echo_text,
17
  inputs=gr.Textbox(placeholder="Enter text here..."),
18
  outputs=gr.Textbox(),
19
+ examples=query_examples,
20
  live=True,
21
  title="LLM Evaluator with Linguistic Scrutiny",
22
  theme=theme