Update app.py
Browse files
app.py
CHANGED
@@ -11,14 +11,13 @@ headers = {
|
|
11 |
}
|
12 |
|
13 |
|
14 |
-
import { HfInference } from '@huggingface/inference'
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
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):
|