Spaces:
Sleeping
Sleeping
did not work, trying different approach
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def rand_char_description():
|
|
| 94 |
return output1[0]["generated_text"].strip(),output2[0]["generated_text"].strip()
|
| 95 |
|
| 96 |
##UI is fine as-is
|
| 97 |
-
with gr.Blocks() as demo:
|
| 98 |
title = gr.HTML("<center><h1>NPC Generator</h1></center>")
|
| 99 |
description = gr.HTML("<center>For tabletop GMs when players ask for a description of random people in the tavern.</center>")
|
| 100 |
tags = gr.HTML("<center>| Backyard AI | Tiny Titan |</center>")
|
|
@@ -133,7 +133,7 @@ with gr.Blocks() as demo:
|
|
| 133 |
|
| 134 |
with gr.Accordion("Bard Stats", open = False):
|
| 135 |
with gr.Row():
|
| 136 |
-
dcs = gr.Textbox(value = smash, label = "DC to Smash"
|
| 137 |
prefs = gr.Textbox(value = pref_traits, label = "Advantage if:")
|
| 138 |
icks = gr.Textbox(value = ick_traits, label = "Disdvantage if:")
|
| 139 |
|
|
|
|
| 94 |
return output1[0]["generated_text"].strip(),output2[0]["generated_text"].strip()
|
| 95 |
|
| 96 |
##UI is fine as-is
|
| 97 |
+
with gr.Blocks(live = True) as demo:
|
| 98 |
title = gr.HTML("<center><h1>NPC Generator</h1></center>")
|
| 99 |
description = gr.HTML("<center>For tabletop GMs when players ask for a description of random people in the tavern.</center>")
|
| 100 |
tags = gr.HTML("<center>| Backyard AI | Tiny Titan |</center>")
|
|
|
|
| 133 |
|
| 134 |
with gr.Accordion("Bard Stats", open = False):
|
| 135 |
with gr.Row():
|
| 136 |
+
dcs = gr.Textbox(value = smash, label = "DC to Smash")
|
| 137 |
prefs = gr.Textbox(value = pref_traits, label = "Advantage if:")
|
| 138 |
icks = gr.Textbox(value = ick_traits, label = "Disdvantage if:")
|
| 139 |
|