ChenyuRabbitLove commited on
Commit
142364b
1 Parent(s): e3d42b8

refactor: remove nickname feature

Browse files
Files changed (2) hide show
  1. app.py +0 -4
  2. utils/utils.py +0 -8
app.py CHANGED
@@ -108,10 +108,6 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
108
  )
109
  ).then(
110
  player_info_query_btn.click(get_player_achievements, player_info, achievements)
111
- ).then(
112
- player_info_query_btn.click(
113
- get_player_nickname, player_info, avatar_description
114
- )
115
  ).then(
116
  player_info_query_btn.click(get_current_story, None, adventure)
117
  )
 
108
  )
109
  ).then(
110
  player_info_query_btn.click(get_player_achievements, player_info, achievements)
 
 
 
 
111
  ).then(
112
  player_info_query_btn.click(get_current_story, None, adventure)
113
  )
utils/utils.py CHANGED
@@ -20,14 +20,6 @@ def get_player_partners(player_info: gr.State) -> List[str]:
20
  ]
21
 
22
 
23
- def get_player_nickname(player_info: gr.State) -> str:
24
- player_nickname = player_info["player_nickname"]
25
- if player_nickname:
26
- return f'# 光束守護者 - {player_info["player_nickname"]}'
27
- else:
28
- return "# 光束守護者"
29
-
30
-
31
  def get_player_badges(player_info: gr.State) -> List[str]:
32
  return [f"{MEDIA_PATH}{badge}{MEDIA_FILE_TYPE}" for badge in player_info["badges"]]
33
 
 
20
  ]
21
 
22
 
 
 
 
 
 
 
 
 
23
  def get_player_badges(player_info: gr.State) -> List[str]:
24
  return [f"{MEDIA_PATH}{badge}{MEDIA_FILE_TYPE}" for badge in player_info["badges"]]
25