vilarin commited on
Commit
4893c03
·
verified ·
1 Parent(s): abe1aec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -13,9 +13,6 @@ client = OpenAI(api_key=api_key)
13
  # Define the model to be used
14
  MODEL = os.environ.get("MODEL")
15
 
16
- SYS_PROMPT = read('system_prompt.txt')
17
-
18
-
19
  DESCRIPTION = '''
20
  <div>
21
  <h1 style="text-align: center;">Medster - Diagnostic Assistant</h1>
@@ -43,7 +40,9 @@ def read(filename):
43
  with open(filename) as f:
44
  data = f.read()
45
  return data
46
-
 
 
47
  def process_text(text_input, unit):
48
  if text_input:
49
  completion = client.chat.completions.create(
 
13
  # Define the model to be used
14
  MODEL = os.environ.get("MODEL")
15
 
 
 
 
16
  DESCRIPTION = '''
17
  <div>
18
  <h1 style="text-align: center;">Medster - Diagnostic Assistant</h1>
 
40
  with open(filename) as f:
41
  data = f.read()
42
  return data
43
+
44
+ SYS_PROMPT = read('system_prompt.txt')
45
+
46
  def process_text(text_input, unit):
47
  if text_input:
48
  completion = client.chat.completions.create(