File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ def __init__(
337
337
self .fn_durations = [0 , 0 ]
338
338
self .__name__ = getattr (fn , "__name__" , "fn" )
339
339
self .live = live
340
- self .title = title
341
340
342
341
self .simple_description = utils .remove_html_tags (description )
343
342
self .description = description
Original file line number Diff line number Diff line change @@ -1445,7 +1445,7 @@ def manifest_json():
1445
1445
return ORJSONResponse (
1446
1446
content = {
1447
1447
# NOTE: Required members: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Guides/Making_PWAs_installable#required_manifest_members
1448
- "name" : app .get_blocks ().title or "Gradio" ,
1448
+ "name" : app .get_blocks ().title ,
1449
1449
"icons" : [
1450
1450
{
1451
1451
"src" : "static/img/logo192.svg" ,
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ def captured_output():
28
28
29
29
30
30
class TestInterface :
31
+ def test_default_title (self ):
32
+ io = Interface (lambda x : x , "textbox" , "label" )
33
+ assert io .title == "Gradio"
34
+
31
35
def test_close (self ):
32
36
io = Interface (lambda input : None , "textbox" , "label" )
33
37
_ , local_url , _ = io .launch (prevent_thread_lock = True )
You can’t perform that action at this time.
0 commit comments