Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
a1974cd
1
Parent(s):
8a5d4d4
Update app.py
Browse files
app.py
CHANGED
@@ -3,15 +3,6 @@ import openai
|
|
3 |
import os
|
4 |
import time
|
5 |
import logging
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
16 |
logging.warning("READY. App started...")
|
17 |
|
@@ -139,11 +130,12 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
|
139 |
with gr.Column():
|
140 |
# to do: change to openaikey input for public release
|
141 |
openai_key = gr.Textbox(
|
142 |
-
label="
|
143 |
-
value="",
|
144 |
type="password",
|
145 |
placeholder="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",
|
146 |
-
info="
|
|
|
147 |
)
|
148 |
|
149 |
chatbot = gr.Chatbot().style(height=400)
|
|
|
3 |
import os
|
4 |
import time
|
5 |
import logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
|
7 |
logging.warning("READY. App started...")
|
8 |
|
|
|
130 |
with gr.Column():
|
131 |
# to do: change to openaikey input for public release
|
132 |
openai_key = gr.Textbox(
|
133 |
+
label="",
|
134 |
+
value="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",
|
135 |
type="password",
|
136 |
placeholder="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",
|
137 |
+
info="",
|
138 |
+
show_label=False,
|
139 |
)
|
140 |
|
141 |
chatbot = gr.Chatbot().style(height=400)
|