Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ import time
|
|
4 |
import openai
|
5 |
import pandas as pd
|
6 |
|
7 |
-
openai.api_key = "
|
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:
|