awacke1 commited on
Commit
ac61629
·
verified ·
1 Parent(s): 7a98c03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -12
app.py CHANGED
@@ -41,18 +41,21 @@ title="🔬🧠ScienceBrain.AI"
41
  helpURL='https://huggingface.co/awacke1'
42
  bugURL='https://huggingface.co/spaces/awacke1'
43
  icons='🔬'
44
- st.set_page_config(
45
- page_title=title,
46
- page_icon=icons,
47
- layout="wide",
48
- #initial_sidebar_state="expanded",
49
- initial_sidebar_state="auto",
50
- menu_items={
51
- 'Get Help': helpURL,
52
- 'Report a bug': bugURL,
53
- 'About': title
54
- }
55
- )
 
 
 
56
 
57
  # My Inference API Copy
58
  API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama
 
41
  helpURL='https://huggingface.co/awacke1'
42
  bugURL='https://huggingface.co/spaces/awacke1'
43
  icons='🔬'
44
+
45
+ useConfig=False
46
+ if useConfig: # Component code at end runs py which makes this error so useConfig=False should allow it to work without
47
+ st.set_page_config(
48
+ page_title=title,
49
+ page_icon=icons,
50
+ layout="wide",
51
+ #initial_sidebar_state="expanded",
52
+ initial_sidebar_state="auto",
53
+ menu_items={
54
+ 'Get Help': helpURL,
55
+ 'Report a bug': bugURL,
56
+ 'About': title
57
+ }
58
+ )
59
 
60
  # My Inference API Copy
61
  API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud' # Dr Llama