Update app.py
Browse files
app.py
CHANGED
|
@@ -56,8 +56,7 @@ def categorize(card):
|
|
| 56 |
|
| 57 |
title = "Color pAI Version 1.0"
|
| 58 |
description = """
|
| 59 |
-
Color pAI is trained on around 18,000 Magic: the Gathering cards
|
| 60 |
-
<a href="https://company.wizards.com/en/legal/fancontentpolicy" target = 'blank'>fan content policy</a>.
|
| 61 |
<br>
|
| 62 |
Input a card text using Scryfall syntax, and the model will tell evaluate which color it is most likely to be.
|
| 63 |
<br>Replace any card names with the word CARDNAME.
|
|
@@ -67,7 +66,8 @@ Input a card text using Scryfall syntax, and the model will tell evaluate which
|
|
| 67 |
"""
|
| 68 |
article = '''
|
| 69 |
<br>
|
| 70 |
-
Magic: the Gathering is property of Wizards of the Coast.
|
|
|
|
| 71 |
'''
|
| 72 |
predictor_lg = TextClassificationPipeline(model=model, tokenizer=tokenizer, function_to_apply = 'softmax', top_k = 6)
|
| 73 |
|
|
|
|
| 56 |
|
| 57 |
title = "Color pAI Version 1.0"
|
| 58 |
description = """
|
| 59 |
+
Color pAI is trained on around 18,000 Magic: the Gathering cards.
|
|
|
|
| 60 |
<br>
|
| 61 |
Input a card text using Scryfall syntax, and the model will tell evaluate which color it is most likely to be.
|
| 62 |
<br>Replace any card names with the word CARDNAME.
|
|
|
|
| 66 |
"""
|
| 67 |
article = '''
|
| 68 |
<br>
|
| 69 |
+
Magic: the Gathering is property of Wizards of the Coast. This project is made possible under their
|
| 70 |
+
<a href="https://company.wizards.com/en/legal/fancontentpolicy" target = 'blank'>fan content policy</a>.
|
| 71 |
'''
|
| 72 |
predictor_lg = TextClassificationPipeline(model=model, tokenizer=tokenizer, function_to_apply = 'softmax', top_k = 6)
|
| 73 |
|