awacke1 commited on
Commit
5fc09ea
·
1 Parent(s): ad539f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -16,9 +16,11 @@ 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
  # Render iframe contents
20
- st.components.v1.iframe(src, width=1200, height=800, scrolling=False)
21
-
 
22
 
23
  # query params exist
24
  try:
@@ -48,4 +50,4 @@ def LoadGradioAIModels():
48
 
49
  examples = [
50
  ["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."]]
51
- gr.Interface.load("huggingface/ajitrajasekharan/biomedical",title=title,description=description,article=article, examples=examples, allow_flagging="never",enable_queue=True).launch()
 
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
  # Render iframe contents
21
+ width = 1400
22
+ height=800
23
+ st.components.v1.iframe(src, width, height, scrolling=False)
24
 
25
  # query params exist
26
  try:
 
50
 
51
  examples = [
52
  ["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."]]
53
+ #gr.Interface.load("huggingface/ajitrajasekharan/biomedical",title=title,description=description,article=article, examples=examples, allow_flagging="never",enable_queue=True).launch()