Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -190,8 +190,6 @@ demo = gr.Interface(
|
|
190 |
],
|
191 |
outputs=[
|
192 |
gr.Textbox(label="Generated Names"),
|
193 |
-
gr.Button("Flag Output", elem_id="flag_button"),
|
194 |
-
gr.HTML(display_disclaimer())
|
195 |
],
|
196 |
live=True,
|
197 |
title='Dungen Dev - Name Generator',
|
@@ -205,4 +203,20 @@ demo = gr.Interface(
|
|
205 |
]
|
206 |
)
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
demo.launch()
|
|
|
190 |
],
|
191 |
outputs=[
|
192 |
gr.Textbox(label="Generated Names"),
|
|
|
|
|
193 |
],
|
194 |
live=True,
|
195 |
title='Dungen Dev - Name Generator',
|
|
|
203 |
]
|
204 |
)
|
205 |
|
206 |
+
flag_ui = gr.Interface(
|
207 |
+
fn=flag_output,
|
208 |
+
inputs=[
|
209 |
+
gr.Textbox(label="Prompt", interactive=False),
|
210 |
+
gr.Textbox(label="Generated Names", interactive=False),
|
211 |
+
gr.Number(label="Next Words", interactive=False),
|
212 |
+
gr.Number(label="Temperature", interactive=False),
|
213 |
+
],
|
214 |
+
outputs=[
|
215 |
+
gr.Textbox(label="Flag Status")
|
216 |
+
],
|
217 |
+
title="Flag Output"
|
218 |
+
)
|
219 |
+
|
220 |
+
disclaimer_ui = gr.HTML(display_disclaimer())
|
221 |
+
|
222 |
demo.launch()
|