awacke1 commited on
Commit
48295f3
1 Parent(s): a76170c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -77,7 +77,7 @@ async def take_last_tokens(inputs, note_history, history):
77
  history = history[1:]
78
  return inputs, note_history, history
79
 
80
- def add_note_to_history(note, note_history):# good example of non async since we wait around til we know it went okay.
81
  """Add a note to the historical information"""
82
  note_history.append(note)
83
  note_history = '</s> <s>'.join(note_history)
@@ -105,11 +105,6 @@ async def chat(message, history):
105
  store_message(message, response) # Save to dataset -- uncomment with code above, create a dataset to store and add your HF_TOKEN from profile to this repo to use.
106
  return history, history
107
 
108
- #with gr.Blocks() as demo:
109
- # gr.Markdown("<h1><center>🥫Datasets🎨</center></h1>")
110
- # gr.Markdown("""<div align="center">Curated Datasets: <a href = "https://www.kaggle.com/datasets">Kaggle</a>. <a href="https://www.nlm.nih.gov/research/umls/index.html">NLM UMLS</a>. <a href="https://loinc.org/downloads/">LOINC</a>. <a href="https://www.cms.gov/medicare/icd-10/2022-icd-10-cm">ICD10 Diagnosis</a>. <a href="https://icd.who.int/dev11/downloads">ICD11</a>. <a href="https://paperswithcode.com/datasets?q=medical&v=lst&o=newest">Papers,Code,Datasets for SOTA in Medicine</a>. <a href="https://paperswithcode.com/datasets?q=mental&v=lst&o=newest">Mental</a>. <a href="https://paperswithcode.com/datasets?q=behavior&v=lst&o=newest">Behavior</a>. <a href="https://www.cms.gov/medicare-coverage-database/downloads/downloads.aspx">CMS Downloads</a>. <a href="https://www.cms.gov/medicare/fraud-and-abuse/physicianselfreferral/list_of_codes">CMS CPT and HCPCS Procedures and Services</a> """)
111
-
112
-
113
  gr.Interface(
114
  fn=chat,
115
  theme="huggingface",
 
77
  history = history[1:]
78
  return inputs, note_history, history
79
 
80
+ def add_note_to_history(note, note_history):# good example of non async since we wait around til we know it went okay.
81
  """Add a note to the historical information"""
82
  note_history.append(note)
83
  note_history = '</s> <s>'.join(note_history)
 
105
  store_message(message, response) # Save to dataset -- uncomment with code above, create a dataset to store and add your HF_TOKEN from profile to this repo to use.
106
  return history, history
107
 
 
 
 
 
 
108
  gr.Interface(
109
  fn=chat,
110
  theme="huggingface",