nttwt1597 commited on
Commit
bb9501b
·
verified ·
1 Parent(s): 5ce4cca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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 = """ Please generate the eligibility criteria, which will be used in clinical research, based on the given clinical trials information as a clinical researcher.
62
- ### Clinical trial information:
 
 
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):