Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
9a5f6dd
1
Parent(s):
c9f9382
Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def call_inf_server(prompt, openai_key):
|
|
111 |
return response
|
112 |
|
113 |
|
114 |
-
with gr.Blocks(theme='
|
115 |
gr.Markdown(
|
116 |
"""<h3><center>Chat with gpt-3.5-turbo</center></h3>
|
117 |
|
@@ -122,12 +122,12 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
|
122 |
with gr.Column():
|
123 |
# to do: change to openaikey input for public release
|
124 |
openai_key = gr.Textbox(
|
125 |
-
label="
|
126 |
-
value="",
|
127 |
type="password",
|
128 |
-
placeholder="
|
129 |
-
info="
|
130 |
-
|
131 |
)
|
132 |
chatbot = gr.Chatbot().style(height=400)
|
133 |
with gr.Row():
|
|
|
111 |
return response
|
112 |
|
113 |
|
114 |
+
with gr.Blocks(theme='ParityError/Anime') as demo:
|
115 |
gr.Markdown(
|
116 |
"""<h3><center>Chat with gpt-3.5-turbo</center></h3>
|
117 |
|
|
|
122 |
with gr.Column():
|
123 |
# to do: change to openaikey input for public release
|
124 |
openai_key = gr.Textbox(
|
125 |
+
label="OpenAI Key",
|
126 |
+
value=os.environ.get("OPENAI_API_KEY"),
|
127 |
type="password",
|
128 |
+
placeholder="sk..",
|
129 |
+
info="",
|
130 |
+
show_label=True,
|
131 |
)
|
132 |
chatbot = gr.Chatbot().style(height=400)
|
133 |
with gr.Row():
|