Spaces:
Runtime error
Runtime error
Commit
·
28ace0b
1
Parent(s):
1f16563
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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()
|