Nick Canu commited on
Commit
a7baa35
1 Parent(s): 5c422c7

blog rev test

Browse files
Files changed (2) hide show
  1. Auto_BG_Blog.pdf +0 -3
  2. Home.py +3 -8
Auto_BG_Blog.pdf DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:67b540aff136bdcbaa49666d4ed2ab14aed85f6f12cfa11f81217c33da48116d
3
- size 1521940
 
 
 
 
Home.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  import base64
3
  import boto3
 
4
 
5
  st.set_page_config(page_title='Auto-BG: The Game Concept Generator', layout='wide')
6
 
@@ -357,8 +358,6 @@ def application():
357
  st.button('Report', on_click=report, use_container_width=True)
358
 
359
  def blog():
360
- from pathlib import Path
361
-
362
  st.write('### Auto-BG: The Board Game Concept Generator')
363
  st.write("#### Abstract")
364
  st.write("*This application augments one step in the board game design process by generating potential full game concepts from a collection of descriptive tags.\
@@ -366,12 +365,8 @@ def blog():
366
  These concepts support general users and designers-to-be as alternatives to current concepts, seeds for future concepts, or an entertaining thought experiment.*")
367
 
368
  # Code adapted from "Display and Download PDF in Streamlit: A Blog Use Case" by My Data Talk, https://towardsdatascience.com/display-and-download-pdf-in-streamlit-a-blog-use-case-5fc1ac87d4b1
369
- path = Path(__file__).parent / 'Auto_BG_Blog.pdf'
370
- with open(path, "rb") as blog_file:
371
- blog_pdf = base64.b64encode(blog_file.read()).decode('utf-8')
372
- blog_display = f'<center><iframe src="data:application/pdf;base64,{blog_pdf}" width=100% height=800 type="application/pdf"></iframe><center>'
373
-
374
- st.markdown(blog_display, unsafe_allow_html=True)
375
 
376
 
377
 
 
1
  import streamlit as st
2
  import base64
3
  import boto3
4
+ import streamlit.components.v1 as components
5
 
6
  st.set_page_config(page_title='Auto-BG: The Game Concept Generator', layout='wide')
7
 
 
358
  st.button('Report', on_click=report, use_container_width=True)
359
 
360
  def blog():
 
 
361
  st.write('### Auto-BG: The Board Game Concept Generator')
362
  st.write("#### Abstract")
363
  st.write("*This application augments one step in the board game design process by generating potential full game concepts from a collection of descriptive tags.\
 
365
  These concepts support general users and designers-to-be as alternatives to current concepts, seeds for future concepts, or an entertaining thought experiment.*")
366
 
367
  # Code adapted from "Display and Download PDF in Streamlit: A Blog Use Case" by My Data Talk, https://towardsdatascience.com/display-and-download-pdf-in-streamlit-a-blog-use-case-5fc1ac87d4b1
368
+ blog_src = "https://docs.google.com/document/d/1iYbqHz2-J0k4cNPt7GL2HB85xEwV9cP4_qWUgiZ8_oc/edit?usp=sharing"
369
+ components.iframe(src=blog_src, height=800, scrolling=True)
 
 
 
 
370
 
371
 
372