awacke1 commited on
Commit
444d5a2
1 Parent(s): a6318fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -11,14 +11,13 @@ headers = {
11
  }
12
 
13
 
14
- import { HfInference } from '@huggingface/inference'
15
-
16
- hf = new HfInference(API_URL, API_KEY)
17
- prompt = 'Write instructions to teach anyone to write a discharge plan. List the entities, features and relationships to CCDA and FHIR objects in boldface.'
18
- stream = hf.textGenerationStream({ inputs: prompt })
19
- for await (const r of stream) {
20
- st.markdown(r.token.text)
21
- }
22
 
23
 
24
  def query(payload):
 
11
  }
12
 
13
 
14
+ #import { HfInference } from '@huggingface/inference'
15
+ #hf = new HfInference(API_URL, API_KEY)
16
+ #prompt = 'Write instructions to teach anyone to write a discharge plan. List the entities, features and relationships to CCDA and FHIR objects in boldface.'
17
+ #stream = hf.textGenerationStream({ inputs: prompt })
18
+ #for await (const r of stream) {
19
+ # st.markdown(r.token.text)
20
+ #}
 
21
 
22
 
23
  def query(payload):