bohmian commited on
Commit
26678c6
1 Parent(s): 280f7f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -9
app.py CHANGED
@@ -379,9 +379,12 @@ with st.sidebar:
379
  icons=['house', 'gear', 'gear', 'gear'], menu_icon="cast", default_index=0)
380
  st.write(st.session_state['chunk_size'])
381
 
 
 
382
  ################################ Main Chatbot Page ################################
383
- if page == "Chatbot":
384
- st.header("Chat")
 
385
 
386
  # Store the conversation in the session state.
387
  # Used to render the chat conversation.
@@ -444,8 +447,9 @@ if page == "Chatbot":
444
 
445
  ################################ Chat Config Page ################################
446
  # for changing config like temperature etc.
447
- if page == "Chat Config":
448
- st.header(page)
 
449
 
450
  st.selectbox(
451
  "HuggingFace Inference Model",
@@ -454,12 +458,12 @@ if page == "Chat Config":
454
  key="model"
455
  )
456
 
457
- st.session_state['temperature'] = st.slider(
458
  "Temperature",
459
  0.0, 1.0, 0.05,
460
- value = st.session_state['temperature'],
461
  on_change=get_llm,
462
- # key="temperature"
463
  )
464
 
465
 
@@ -468,8 +472,9 @@ if page == "Chat Config":
468
  # to chnange paramters like chunk size
469
  # to upload own PDF
470
  # to override existing data on new scraped data or new pdf uploaded
471
- if page == "Document, Retriever, Web Scraping Config":
472
- st.header(page)
 
473
 
474
  st.selectbox(
475
  "Chunk Size",
 
379
  icons=['house', 'gear', 'gear', 'gear'], menu_icon="cast", default_index=0)
380
  st.write(st.session_state['chunk_size'])
381
 
382
+ tab1, tab2, tab3 = st.tabs(["Cat", "Dog", "Owl"])
383
+
384
  ################################ Main Chatbot Page ################################
385
+ with tab1:
386
+ #if page == "Chatbot":
387
+ #st.header("Chat")
388
 
389
  # Store the conversation in the session state.
390
  # Used to render the chat conversation.
 
447
 
448
  ################################ Chat Config Page ################################
449
  # for changing config like temperature etc.
450
+ with tab2:
451
+ # if page == "Chat Config":
452
+ # st.header(page)
453
 
454
  st.selectbox(
455
  "HuggingFace Inference Model",
 
458
  key="model"
459
  )
460
 
461
+ st.slider(
462
  "Temperature",
463
  0.0, 1.0, 0.05,
464
+ #value = st.session_state['temperature'],
465
  on_change=get_llm,
466
+ key="temperature"
467
  )
468
 
469
 
 
472
  # to chnange paramters like chunk size
473
  # to upload own PDF
474
  # to override existing data on new scraped data or new pdf uploaded
475
+ with tab3:
476
+ # if page == "Document, Retriever, Web Scraping Config":
477
+ # st.header(page)
478
 
479
  st.selectbox(
480
  "Chunk Size",