awacke1 commited on
Commit
648d037
1 Parent(s): 9054cad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,7 +3,6 @@ import base64
3
  import glob
4
  import json
5
  import math
6
- #import mistune
7
  import openai
8
  import os
9
  import pytz
@@ -34,6 +33,10 @@ from templates import bot_template, css, user_template
34
  from xml.etree import ElementTree as ET
35
  import streamlit.components.v1 as components # Import Streamlit Components for HTML5
36
 
 
 
 
 
37
  def add_Med_Licensing_Exam_Dataset():
38
  import streamlit as st
39
  from datasets import load_dataset
@@ -48,6 +51,7 @@ def add_Med_Licensing_Exam_Dataset():
48
 
49
  # 👩‍🔬 Search Box
50
  search_term = st.text_input("Search for a specific question:", "")
 
51
  # 🎛 Pagination
52
  records_per_page = 100
53
  num_records = len(dataset)
@@ -84,8 +88,6 @@ def add_Med_Licensing_Exam_Dataset():
84
 
85
  st.write(f"😊 Total Records: {num_records} | 📄 Displaying {start_idx+1} to {min(end_idx, num_records)}")
86
 
87
-
88
-
89
  # 1. Constants and Top Level UI Variables
90
 
91
  # My Inference API Copy
@@ -102,8 +104,6 @@ headers = {
102
  }
103
  key = os.getenv('OPENAI_API_KEY')
104
  prompt = f"Write instructions to teach anyone to write a discharge plan. List the entities, features and relationships to CCDA and FHIR objects in boldface."
105
- # page config and sidebar declares up front allow all other functions to see global class variables
106
- # st.set_page_config(page_title="GPT Streamlit Document Reasoner", layout="wide")
107
  should_save = st.sidebar.checkbox("💾 Save", value=True, help="Save your session data.")
108
 
109
  # 2. Prompt label button demo for LLM
 
3
  import glob
4
  import json
5
  import math
 
6
  import openai
7
  import os
8
  import pytz
 
33
  from xml.etree import ElementTree as ET
34
  import streamlit.components.v1 as components # Import Streamlit Components for HTML5
35
 
36
+
37
+ st.set_page_config(page_title="🐪Llama Whisperer🦙 Voice Chat🌟", layout="wide")
38
+
39
+
40
  def add_Med_Licensing_Exam_Dataset():
41
  import streamlit as st
42
  from datasets import load_dataset
 
51
 
52
  # 👩‍🔬 Search Box
53
  search_term = st.text_input("Search for a specific question:", "")
54
+
55
  # 🎛 Pagination
56
  records_per_page = 100
57
  num_records = len(dataset)
 
88
 
89
  st.write(f"😊 Total Records: {num_records} | 📄 Displaying {start_idx+1} to {min(end_idx, num_records)}")
90
 
 
 
91
  # 1. Constants and Top Level UI Variables
92
 
93
  # My Inference API Copy
 
104
  }
105
  key = os.getenv('OPENAI_API_KEY')
106
  prompt = f"Write instructions to teach anyone to write a discharge plan. List the entities, features and relationships to CCDA and FHIR objects in boldface."
 
 
107
  should_save = st.sidebar.checkbox("💾 Save", value=True, help="Save your session data.")
108
 
109
  # 2. Prompt label button demo for LLM