Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
07e0a5e
1
Parent(s):
ff5d3c2
Update app.py
Browse files
app.py
CHANGED
@@ -5,16 +5,7 @@ import gradio as gr
|
|
5 |
import os
|
6 |
|
7 |
|
8 |
-
#def my_function():
|
9 |
-
# return "This is a hidden element"
|
10 |
|
11 |
-
#iface = gr.Interface(fn=my_function, inputs=[], outputs=[], layout="vertical")
|
12 |
-
|
13 |
-
#with gr.Column():
|
14 |
-
#gr.Textbox(label="Visible Element", placeholder="Enter text here", visible=True)
|
15 |
-
#gr.Textbox(label="Hidden Element", placeholder="Enter text here", visible=False)
|
16 |
-
|
17 |
-
#iface.launch()
|
18 |
|
19 |
from src.llm_boilers import llm_boiler
|
20 |
|
@@ -141,16 +132,18 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
|
|
141 |
completion.
|
142 |
"""
|
143 |
)
|
|
|
144 |
conversation = Chat()
|
145 |
with gr.Row():
|
146 |
with gr.Column():
|
147 |
# to do: change to openaikey input for public release
|
148 |
openai_key = gr.Textbox(
|
149 |
-
label="
|
150 |
value="",
|
151 |
type="password",
|
152 |
-
placeholder="
|
153 |
-
info="",
|
|
|
154 |
)
|
155 |
chatbot = gr.Chatbot().style(height=400)
|
156 |
with gr.Row():
|
|
|
5 |
import os
|
6 |
|
7 |
|
|
|
|
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
from src.llm_boilers import llm_boiler
|
11 |
|
|
|
132 |
completion.
|
133 |
"""
|
134 |
)
|
135 |
+
|
136 |
conversation = Chat()
|
137 |
with gr.Row():
|
138 |
with gr.Column():
|
139 |
# to do: change to openaikey input for public release
|
140 |
openai_key = gr.Textbox(
|
141 |
+
label="",
|
142 |
value="",
|
143 |
type="password",
|
144 |
+
placeholder="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",
|
145 |
+
info="You have to provide your own OpenAI API key.",
|
146 |
+
show_label=False,
|
147 |
)
|
148 |
chatbot = gr.Chatbot().style(height=400)
|
149 |
with gr.Row():
|