Spaces:
Runtime error
Runtime error
Commit
·
6144666
1
Parent(s):
25e0f62
set default search type to greedy
Browse files
app.py
CHANGED
@@ -63,6 +63,6 @@ def respond(search_type, input):
|
|
63 |
return ' '.join([indices_to_tokens[ix] for ix in outputs[1:i]])
|
64 |
|
65 |
iface = gr.Interface(fn=respond,
|
66 |
-
inputs=[gr.Radio(["Greedy", "Probabilistic"], label="Search Type"), "text"],
|
67 |
outputs="text")
|
68 |
iface.launch()
|
|
|
63 |
return ' '.join([indices_to_tokens[ix] for ix in outputs[1:i]])
|
64 |
|
65 |
iface = gr.Interface(fn=respond,
|
66 |
+
inputs=[gr.Radio(["Greedy", "Probabilistic"], value="Greedy", label="Search Type"), "text"],
|
67 |
outputs="text")
|
68 |
iface.launch()
|