kenton-li commited on
Commit
4ff927f
·
1 Parent(s): 2b7a8c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,10 +4,10 @@ import time
4
  import openai
5
  import pandas as pd
6
 
7
- openai.api_key = "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"
8
-
9
 
10
 
 
11
  model = None
12
  tokenizer = None
13
  generator = None
@@ -140,6 +140,8 @@ with gr.Blocks() as demo:
140
  invitation = "ChatDoctor: "
141
  human_invitation = "Patient: "
142
  print(history)
 
 
143
 
144
  question = ""
145
  for each_ques in history:
 
4
  import openai
5
  import pandas as pd
6
 
7
+ openai.api_key = ""
 
8
 
9
 
10
+ openai_api_key_textbox = ""
11
  model = None
12
  tokenizer = None
13
  generator = None
 
140
  invitation = "ChatDoctor: "
141
  human_invitation = "Patient: "
142
  print(history)
143
+ print(openai_api_key_textbox)
144
+ openai.api_key = openai_api_key_textbox
145
 
146
  question = ""
147
  for each_ques in history: