Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -169,12 +169,6 @@ def flag_output(prompt, generated_text, next_words, temperature):
|
|
| 169 |
|
| 170 |
return "Output flagged successfully."
|
| 171 |
|
| 172 |
-
def display_disclaimer():
|
| 173 |
-
return ('<div style="padding:10px; border:1px solid #ccc; border-radius:5px; background-color:#f9f9f9;">
|
| 174 |
-
Dungen Dev is an experimental model and may produce outputs that are inappropriate, biased, or potentially harmful and inaccurate.
|
| 175 |
-
Caution is advised.
|
| 176 |
-
</div>')
|
| 177 |
-
|
| 178 |
demo = gr.Interface(
|
| 179 |
fn=generate_text,
|
| 180 |
inputs=[
|
|
@@ -187,7 +181,7 @@ demo = gr.Interface(
|
|
| 187 |
gr.Button(value="Flag", elem_id="flag_button"),
|
| 188 |
],
|
| 189 |
title='Dungen Dev - Name Generator',
|
| 190 |
-
description=
|
| 191 |
examples=[
|
| 192 |
["a male character name", 30, 0.5],
|
| 193 |
["a futuristic city name", 30, 0.5],
|
|
@@ -197,6 +191,4 @@ demo = gr.Interface(
|
|
| 197 |
]
|
| 198 |
)
|
| 199 |
|
| 200 |
-
disclaimer = gr.HTML(display_disclaimer(), elem_id="disclaimer_div")
|
| 201 |
-
|
| 202 |
demo.launch()
|
|
|
|
| 169 |
|
| 170 |
return "Output flagged successfully."
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
demo = gr.Interface(
|
| 173 |
fn=generate_text,
|
| 174 |
inputs=[
|
|
|
|
| 181 |
gr.Button(value="Flag", elem_id="flag_button"),
|
| 182 |
],
|
| 183 |
title='Dungen Dev - Name Generator',
|
| 184 |
+
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.',
|
| 185 |
examples=[
|
| 186 |
["a male character name", 30, 0.5],
|
| 187 |
["a futuristic city name", 30, 0.5],
|
|
|
|
| 191 |
]
|
| 192 |
)
|
| 193 |
|
|
|
|
|
|
|
| 194 |
demo.launch()
|