Spaces:
Sleeping
Sleeping
update
Browse files
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.
|
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()
|
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("β")
|