Spaces:
Sleeping
Sleeping
Update app.py
Browse files5 unmodified lines67891011121314151650 unmodified lines676869707172735 unmodified linesimport gradio as grsp = spm.SentencePieceProcessor()sp.Load("dungen_dev_preview.model")model = tf.keras.models.load_model("dungen_dev_preview_model.keras")max_seq_len = 25def generate_text(seed_text, next_words=30, temperature=0.5):seed_text = seed_text.strip().lower()50 unmodified lines],outputs=gr.Textbox(label="Generated Names"),title='Dungen Dev - Name Generator',description='A prompt-based name generator for game developers. Dungen Dev is an experimental model, and may produce outputs that are inappropriate, biased, or potentially harmful and inaccurate. Caution is advised.',examples=[["a male character name", 30, 0.5],["a futuristic city name", 30, 0.5],5 unmodified lines67891011121314151650 unmodified lines676869707172735 unmodified linesimport gradio as grsp = spm.SentencePieceProcessor()sp.Load("dungen_dev_1.1.model")model = tf.keras.models.load_model("dungen_dev_1.1.keras")max_seq_len = 26def generate_text(seed_text, next_words=30, temperature=0.5):seed_text = seed_text.strip().lower()50 unmodified lines],outputs=gr.Textbox(label="Generated Names"),title='Dungen Dev - Name Generator',description='<sup>Dungen Dev v1.1</sup><br><br>A prompt-based name generator for game developers. Dungen Dev is an experimental model, and may produce outputs that are inappropriate, biased, or potentially harmful and inaccurate. Caution is advised.',examples=[["a male character name", 30, 0.5],["a futuristic city name", 30, 0.5],
app.py+4-4