Spaces:
Configuration error
Configuration error
Tristan Thrush
commited on
Commit
•
98e4568
1
Parent(s):
1043275
bugfix
Browse files
app.py
CHANGED
@@ -193,8 +193,8 @@ with demo:
|
|
193 |
|
194 |
# Button event handlers
|
195 |
get_window_location_search_js = """
|
196 |
-
function(
|
197 |
-
return [
|
198 |
}
|
199 |
"""
|
200 |
|
@@ -209,7 +209,6 @@ with demo:
|
|
209 |
_predict,
|
210 |
inputs=[text_input, state],
|
211 |
outputs=[text_input, select_response_button, select_response, past_conversation, state, example_submit, final_submit, final_submit_preview, state_display],
|
212 |
-
_js=get_window_location_search_js,
|
213 |
)
|
214 |
|
215 |
post_hit_js = """
|
|
|
193 |
|
194 |
# Button event handlers
|
195 |
get_window_location_search_js = """
|
196 |
+
function(select_response, state, dummy) {
|
197 |
+
return [select_response, state, window.location.search];
|
198 |
}
|
199 |
"""
|
200 |
|
|
|
209 |
_predict,
|
210 |
inputs=[text_input, state],
|
211 |
outputs=[text_input, select_response_button, select_response, past_conversation, state, example_submit, final_submit, final_submit_preview, state_display],
|
|
|
212 |
)
|
213 |
|
214 |
post_hit_js = """
|