Commit
Β·
72fb3d9
1
Parent(s):
2979eff
Update app.py
Browse files
app.py
CHANGED
@@ -25,14 +25,14 @@ class CustomInterface(gr.Interface):
|
|
25 |
component.render()
|
26 |
with Row():
|
27 |
if self.interface_type in [InterfaceTypes.STANDARD, InterfaceTypes.INPUT_ONLY]:
|
28 |
-
clear_btn = ClearButton(value = "Clear your search
|
29 |
if not self.live:
|
30 |
-
submit_btn = Button("Submit your search
|
31 |
if inspect.isgeneratorfunction(self.fn) or inspect.isasyncgenfunction(self.fn):
|
32 |
stop_btn = Button("Stop", variant="stop", visible=False)
|
33 |
elif self.interface_type == InterfaceTypes.UNIFIED:
|
34 |
-
clear_btn = ClearButton(value = "Clear your search
|
35 |
-
submit_btn = Button("Submit your search
|
36 |
if (inspect.isgeneratorfunction(self.fn) or inspect.isasyncgenfunction(self.fn)) and not self.live:
|
37 |
stop_btn = Button("Stop", variant="stop")
|
38 |
if self.allow_flagging == "manual":
|
|
|
25 |
component.render()
|
26 |
with Row():
|
27 |
if self.interface_type in [InterfaceTypes.STANDARD, InterfaceTypes.INPUT_ONLY]:
|
28 |
+
clear_btn = ClearButton(value = "Clear your search")
|
29 |
if not self.live:
|
30 |
+
submit_btn = Button("Submit your search", variant="primary") # Custom label
|
31 |
if inspect.isgeneratorfunction(self.fn) or inspect.isasyncgenfunction(self.fn):
|
32 |
stop_btn = Button("Stop", variant="stop", visible=False)
|
33 |
elif self.interface_type == InterfaceTypes.UNIFIED:
|
34 |
+
clear_btn = ClearButton(value = "Clear your search")
|
35 |
+
submit_btn = Button("Submit your search", variant="primary") # Custom label
|
36 |
if (inspect.isgeneratorfunction(self.fn) or inspect.isasyncgenfunction(self.fn)) and not self.live:
|
37 |
stop_btn = Button("Stop", variant="stop")
|
38 |
if self.allow_flagging == "manual":
|