Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
·
e22cf04
1
Parent(s):
51db84d
debug
Browse files- app.py +1 -1
- collect.py +1 -3
app.py
CHANGED
|
@@ -87,7 +87,7 @@ with demo:
|
|
| 87 |
_submit,
|
| 88 |
inputs=[state, dummy],
|
| 89 |
outputs=[response_output, state, dummy],
|
| 90 |
-
_js="function(state, dummy) { console.log(window
|
| 91 |
)
|
| 92 |
#gr.Markdown(state["response"].text if "response" in state and state["response"] is not None else "")
|
| 93 |
|
|
|
|
| 87 |
_submit,
|
| 88 |
inputs=[state, dummy],
|
| 89 |
outputs=[response_output, state, dummy],
|
| 90 |
+
_js="function(state, dummy) { console.log(window); return [state, window.location.search]; }",
|
| 91 |
)
|
| 92 |
#gr.Markdown(state["response"].text if "response" in state and state["response"] is not None else "")
|
| 93 |
|
collect.py
CHANGED
|
@@ -22,9 +22,7 @@ question = HTMLQuestion(
|
|
| 22 |
"""
|
| 23 |
<!DOCTYPE html>
|
| 24 |
<html>
|
| 25 |
-
<
|
| 26 |
-
<iframe src="https://hf.space/embed/Tristan/dadc/+"></iframe>
|
| 27 |
-
</body>
|
| 28 |
</html>
|
| 29 |
""",
|
| 30 |
frame_height=600
|
|
|
|
| 22 |
"""
|
| 23 |
<!DOCTYPE html>
|
| 24 |
<html>
|
| 25 |
+
<iframe src="https://hf.space/embed/Tristan/dadc/+"></iframe>
|
|
|
|
|
|
|
| 26 |
</html>
|
| 27 |
""",
|
| 28 |
frame_height=600
|