ChenyuRabbitLove commited on
Commit
bb68beb
1 Parent(s): 5358090

refactor: make get_content() more concise

Browse files
Files changed (1) hide show
  1. utils/utils.py +1 -1
utils/utils.py CHANGED
@@ -9,7 +9,7 @@ MEDIA_FILE_TYPE = ".png"
9
  def get_content(file_name: str) -> str:
10
  with open(file_name, "r", encoding="utf-8") as file:
11
  content = file.read()
12
- return content
13
 
14
 
15
  def get_player_partners(player_info: gr.State) -> List[str]:
 
9
  def get_content(file_name: str) -> str:
10
  with open(file_name, "r", encoding="utf-8") as file:
11
  content = file.read()
12
+ return "<div style='max-width:100%; max-height:360px; overflow:auto'>" + content
13
 
14
 
15
  def get_player_partners(player_info: gr.State) -> List[str]: