Spaces:
Runtime error
Runtime error
alistairmcleay
commited on
Commit
Β·
8a1bda8
1
Parent(s):
d75062c
Added warning to cover persistent state
Browse files
app.py
CHANGED
@@ -141,7 +141,11 @@ with block:
|
|
141 |
Supported domains are: <br> \
|
142 |
1. π Train, 2. π¨ Hotel, 3. π Taxi, 4. π Police, 5. π£ Restaurant, 6. πΏ Attraction, 7. π₯ Hospital."
|
143 |
)
|
144 |
-
gr.Markdown(
|
|
|
|
|
|
|
|
|
145 |
with gr.Tabs():
|
146 |
with gr.TabItem("Dialogue System"):
|
147 |
gr.Markdown(
|
@@ -195,4 +199,4 @@ with block:
|
|
195 |
reset_us_button.click(reset_us_state, None, us_response)
|
196 |
reset_self_play_button.click(reset_self_play_state, None, self_play_response)
|
197 |
|
198 |
-
block.launch(
|
|
|
141 |
Supported domains are: <br> \
|
142 |
1. π Train, 2. π¨ Hotel, 3. π Taxi, 4. π Police, 5. π£ Restaurant, 6. πΏ Attraction, 7. π₯ Hospital."
|
143 |
)
|
144 |
+
gr.Markdown(
|
145 |
+
"**Please note:** <br> \
|
146 |
+
1. These systems are in development and are full of funny little bugs, as is this app. <br> \
|
147 |
+
2. If you refresh this page the conversation state will persist. To reset a conversion you need to click 'Reset Conversation' below."
|
148 |
+
)
|
149 |
with gr.Tabs():
|
150 |
with gr.TabItem("Dialogue System"):
|
151 |
gr.Markdown(
|
|
|
199 |
reset_us_button.click(reset_us_state, None, us_response)
|
200 |
reset_self_play_button.click(reset_self_play_state, None, self_play_response)
|
201 |
|
202 |
+
block.launch()
|