Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,7 @@ model = tf.keras.models.load_model("dungen_dev_preview_model.keras")
|
|
13 |
max_seq_len = 25
|
14 |
|
15 |
def generate_text(seed_text, next_words=30, temperature=0.5):
|
|
|
16 |
seed_text = seed_text.lower() + ' | '
|
17 |
hate_speech = detect_hate_speech(seed_text)
|
18 |
profanity = detect_profanity([seed_text], language='All')
|
@@ -69,11 +70,11 @@ demo = gr.Interface(
|
|
69 |
title='Dungen Dev - Name Generator',
|
70 |
description='A prompt-based name generator for game developers.',
|
71 |
examples=[
|
72 |
-
["a male
|
73 |
["a futuristic city name", 30, 0.5],
|
74 |
-
["
|
75 |
["a dark and mysterious forest name", 30, 0.5],
|
76 |
-
["
|
77 |
]
|
78 |
)
|
79 |
|
|
|
13 |
max_seq_len = 25
|
14 |
|
15 |
def generate_text(seed_text, next_words=30, temperature=0.5):
|
16 |
+
seed_text = seed_text.strip()
|
17 |
seed_text = seed_text.lower() + ' | '
|
18 |
hate_speech = detect_hate_speech(seed_text)
|
19 |
profanity = detect_profanity([seed_text], language='All')
|
|
|
70 |
title='Dungen Dev - Name Generator',
|
71 |
description='A prompt-based name generator for game developers.',
|
72 |
examples=[
|
73 |
+
["a male character name", 30, 0.5],
|
74 |
["a futuristic city name", 30, 0.5],
|
75 |
+
["an item name", 30, 0.5],
|
76 |
["a dark and mysterious forest name", 30, 0.5],
|
77 |
+
["an evil character name", 30, 0.5]
|
78 |
]
|
79 |
)
|
80 |
|