Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,13 +58,15 @@ FastLanguageModel.for_inference(model) # Enable native 2x faster inference
|
|
| 58 |
from transformers import pipeline, TextIteratorStreamer
|
| 59 |
from threading import Thread
|
| 60 |
|
| 61 |
-
criteria_prompt = """
|
| 62 |
-
|
|
|
|
|
|
|
| 63 |
|
|
|
|
| 64 |
{}
|
| 65 |
|
| 66 |
### Eligibility criteria:
|
| 67 |
-
|
| 68 |
{}"""
|
| 69 |
|
| 70 |
def format_prompt(text):
|
|
|
|
| 58 |
from transformers import pipeline, TextIteratorStreamer
|
| 59 |
from threading import Thread
|
| 60 |
|
| 61 |
+
criteria_prompt = """Based on the provided instructions and clinical trial information, generate the eligibility criteria for the study.
|
| 62 |
+
|
| 63 |
+
### Instruction:
|
| 64 |
+
As a clinical researcher, generate comprehensive eligibility criteria to be used in clinical research based on the given clinical trial information. Ensure the criteria are clear, specific, and suitable for a clinical research setting.
|
| 65 |
|
| 66 |
+
### Clinical trial information:
|
| 67 |
{}
|
| 68 |
|
| 69 |
### Eligibility criteria:
|
|
|
|
| 70 |
{}"""
|
| 71 |
|
| 72 |
def format_prompt(text):
|