Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,9 @@ def SetIframeURL(option_selected):
|
|
16 |
src='https://davidbkemp.github.io/quantum-gate-playground/'
|
17 |
if (option_selected=='Circuit'):
|
18 |
src='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
|
|
|
|
|
|
|
19 |
|
20 |
# query params exist
|
21 |
try:
|
@@ -38,8 +41,6 @@ except: # catch exception and set query param to predefined value
|
|
38 |
st.experimental_set_query_params(option=option_selected)
|
39 |
SetIframeURL(option_selected)
|
40 |
|
41 |
-
# Render iframe contents
|
42 |
-
st.components.v1.iframe(src, width=1200, height=800, scrolling=False)
|
43 |
|
44 |
title = "AI Quantum - QGAN"
|
45 |
description = "Using Superposition Advantage from Quantum for QGAN AI."
|
|
|
16 |
src='https://davidbkemp.github.io/quantum-gate-playground/'
|
17 |
if (option_selected=='Circuit'):
|
18 |
src='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
|
19 |
+
# Render iframe contents
|
20 |
+
st.components.v1.iframe(src, width=1200, height=800, scrolling=False)
|
21 |
+
|
22 |
|
23 |
# query params exist
|
24 |
try:
|
|
|
41 |
st.experimental_set_query_params(option=option_selected)
|
42 |
SetIframeURL(option_selected)
|
43 |
|
|
|
|
|
44 |
|
45 |
title = "AI Quantum - QGAN"
|
46 |
description = "Using Superposition Advantage from Quantum for QGAN AI."
|