nkasmanoff commited on
Commit
28ace0b
·
1 Parent(s): 1f16563

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -21,10 +21,12 @@ def predict(input_text, option):
21
 
22
  input_type = gr.inputs.Textbox(label="Input Text")
23
  checkbox = gr.inputs.Radio(["Semantic search", "Dataset similarity"], label="Please select search type:")
24
- iface = gr.Interface(fn=predict, inputs=[input_type, checkbox], outputs="text", title="SearchingFace")
25
 
26
  example1 = ["Natural disasters", "Semantic search"]
27
  example2 = ["https://huggingface.co/datasets/turkic_xwmt", "Dataset similarity"]
28
- iface.test_examples = [example1, example2]
 
 
 
29
 
30
  iface.launch()
 
21
 
22
  input_type = gr.inputs.Textbox(label="Input Text")
23
  checkbox = gr.inputs.Radio(["Semantic search", "Dataset similarity"], label="Please select search type:")
 
24
 
25
  example1 = ["Natural disasters", "Semantic search"]
26
  example2 = ["https://huggingface.co/datasets/turkic_xwmt", "Dataset similarity"]
27
+ examples = [example1, example2]
28
+ title = "SearchingFace: Search for datasets!"
29
+
30
+ iface = gr.Interface(fn=predict, inputs=[input_type, checkbox], examples=examples, title=title, outputs="text", title="SearchingFace")
31
 
32
  iface.launch()