TURX commited on
Commit
1331fa9
β€’
1 Parent(s): b7a625a
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -38,7 +38,7 @@ waka_type_map = {
38
  description="""
39
  <h1>Japanese Language Models</h1><hr>
40
  Final Project, STAT 453 Spring 2024, University of Wisconsin-Madison<br>
41
- Author: Ruixuan Tu (ruixuan@cs.wisc.edu, https://turx.asia)<hr>
42
  Navigate the apps using the left sidebar.
43
  """
44
  )
@@ -172,7 +172,7 @@ def waka(preface: str = "", author: str = "", first_line: str = "あききぬと
172
 
173
  removed = 0
174
  checked_generated = []
175
- if type.lower() in ["kana", "aligned"]:
176
  def check(seq):
177
  poem = first_line + seq[len(waka_prompt) - 1:]
178
  parts = poem.split("βˆ’")
 
38
  description="""
39
  <h1>Japanese Language Models</h1><hr>
40
  Final Project, STAT 453 Spring 2024, University of Wisconsin-Madison<br>
41
+ Author: Ruixuan Tu (ruixuan@cs.wisc.edu, https://turx.tokyo)<hr>
42
  Navigate the apps using the left sidebar.
43
  """
44
  )
 
172
 
173
  removed = 0
174
  checked_generated = []
175
+ if type.lower() == "kana":
176
  def check(seq):
177
  poem = first_line + seq[len(waka_prompt) - 1:]
178
  parts = poem.split("βˆ’")