awacke1 commited on
Commit
7541a68
·
1 Parent(s): a0a63a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,7 +13,7 @@ from qiskit import QuantumCircuit, QuantumRegister, execute
13
  src='' # URL parameter to change the iframe url
14
 
15
  def SetIframeURL(option_selected):
16
- if (option_selected=='Book'):
17
  src='https://oreilly-qc.github.io?p=2-1'
18
  if (option_selected=='Grok'):
19
  src='https://javafxpert.github.io/grok-bloch/'
@@ -30,7 +30,7 @@ def SetIframeURL(option_selected):
30
 
31
  # query params exist
32
  try:
33
- options = ['Book', 'Grok', 'Playground', 'Circuit']
34
  query_params = st.experimental_get_query_params()
35
  query_option = query_params['option'][0] #throws an exception when visiting http://host:port
36
  option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
@@ -40,7 +40,7 @@ try:
40
 
41
  # run when query params don't exist. e.g on first launch
42
  except: # catch exception and set query param to predefined value
43
- options = ['Book', 'Grok', 'Playground', 'Circuit']
44
  st.experimental_set_query_params(option=options[1]) # defaults to dog
45
  query_params = st.experimental_get_query_params()
46
  query_option = query_params['option'][0]
@@ -50,7 +50,7 @@ except: # catch exception and set query param to predefined value
50
  SetIframeURL(option_selected)
51
 
52
  def LoadGradioAIModels():
53
- title = "AI Quantum - QGAN"
54
  description = "Using Superposition Advantage from Quantum for QGAN AI."
55
  article = "<p style='text-align: center'></p>"
56
 
 
13
  src='' # URL parameter to change the iframe url
14
 
15
  def SetIframeURL(option_selected):
16
+ if (option_selected=='QCEngine'):
17
  src='https://oreilly-qc.github.io?p=2-1'
18
  if (option_selected=='Grok'):
19
  src='https://javafxpert.github.io/grok-bloch/'
 
30
 
31
  # query params exist
32
  try:
33
+ options = ['QCEngine', 'Grok', 'Playground', 'Circuit']
34
  query_params = st.experimental_get_query_params()
35
  query_option = query_params['option'][0] #throws an exception when visiting http://host:port
36
  option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
 
40
 
41
  # run when query params don't exist. e.g on first launch
42
  except: # catch exception and set query param to predefined value
43
+ options = ['QCEngine', 'Grok', 'Playground', 'Circuit']
44
  st.experimental_set_query_params(option=options[1]) # defaults to dog
45
  query_params = st.experimental_get_query_params()
46
  query_option = query_params['option'][0]
 
50
  SetIframeURL(option_selected)
51
 
52
  def LoadGradioAIModels():
53
+ title = "AI Quantum - QGAN and QCEngine"
54
  description = "Using Superposition Advantage from Quantum for QGAN AI."
55
  article = "<p style='text-align: center'></p>"
56