awacke1 commited on
Commit
17adc5f
·
1 Parent(s): e737040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -13
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import IPython
4
  import streamlit as st
5
  import streamlit.components.v1 as components
 
6
 
7
  # query params exist
8
  try:
@@ -32,26 +33,18 @@ except: # catch exception and set query param to predefined value
32
  st.experimental_set_query_params(option=option_selected)
33
 
34
 
35
- src='https://oreilly-qc.github.io?p=2-1'
36
- src='https://javafxpert.github.io/grok-bloch/'
37
- src='https://davidbkemp.github.io/quantum-gate-playground/'
38
- src='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
39
-
40
- st.components.v1.iframe(src, width=1200, height=800, scrolling=False)
41
-
42
 
 
43
 
44
- from IPython.display import IFrame
45
 
46
  title = "AI Quantum - QGAN"
47
  description = "Using Superposition Advantage from Quantum for QGAN AI."
48
  article = "<p style='text-align: center'></p>"
49
 
50
- #IFrame(src='https://oreilly-qc.github.io?p=2-1', width=900, height=900)
51
- IFrame(src='https://oreilly-qc.github.io?p=2-1', width=900, height=900)
52
- #article = "<script defer='defer' id='gradio-library' src='www.gradio.app/gradio_static/bundle.js'>"
53
- #launchGradioFromSpaces("path/to/spaces", "#div")
54
-
55
  examples = [
56
  ["Scientific breakthroughs in treatment of HIV/AIDS may be solved in our lifetime using a procedure called [MASK] modulation which strengthens the immune system to fight the disease."],["A disease called [MASK] disease involves progressive memory loss and has new treatments to improve memory and delay progression of the disease."],["[MASK] refers to the uncontrolled growth of abnormal cells in the body. With chemotherapy and radiation therapy have improvements and replacements that destroy cancer cells before they become resistant to current treatment methods."],["The hereditary disease [MASK] is caused by mucus abnormally thick preventing lungs and pancreas from doing their jobs correctly."],["[MASK] or atherosclerosis is the buildup of cholesterol, fatty cells, and inflammatory deposits in the arteries. Stem cells, mechanical devices, and lowering cholesterol and blood pressure levels are helping prevention."]
57
  ]
 
3
  import IPython
4
  import streamlit as st
5
  import streamlit.components.v1 as components
6
+ from IPython.display import IFrame
7
 
8
  # query params exist
9
  try:
 
33
  st.experimental_set_query_params(option=option_selected)
34
 
35
 
36
+ src1='https://oreilly-qc.github.io?p=2-1'
37
+ src2='https://javafxpert.github.io/grok-bloch/'
38
+ src3='https://davidbkemp.github.io/quantum-gate-playground/'
39
+ src4='https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22Bloch%22],[%22Measure%22]]}'
 
 
 
40
 
41
+ st.components.v1.iframe(src1, width=1200, height=800, scrolling=False)
42
 
 
43
 
44
  title = "AI Quantum - QGAN"
45
  description = "Using Superposition Advantage from Quantum for QGAN AI."
46
  article = "<p style='text-align: center'></p>"
47
 
 
 
 
 
 
48
  examples = [
49
  ["Scientific breakthroughs in treatment of HIV/AIDS may be solved in our lifetime using a procedure called [MASK] modulation which strengthens the immune system to fight the disease."],["A disease called [MASK] disease involves progressive memory loss and has new treatments to improve memory and delay progression of the disease."],["[MASK] refers to the uncontrolled growth of abnormal cells in the body. With chemotherapy and radiation therapy have improvements and replacements that destroy cancer cells before they become resistant to current treatment methods."],["The hereditary disease [MASK] is caused by mucus abnormally thick preventing lungs and pancreas from doing their jobs correctly."],["[MASK] or atherosclerosis is the buildup of cholesterol, fatty cells, and inflammatory deposits in the arteries. Stem cells, mechanical devices, and lowering cholesterol and blood pressure levels are helping prevention."]
50
  ]