Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -226,8 +226,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
226 |
#input_image.style(height=512, width=512)
|
227 |
instruction = gr.Textbox(placeholder="Enter your instruction/question...", label="Question/Instruction")
|
228 |
llm = gr.Dropdown(["alpaca-lora", "flan-ul2", "gpt-3.5-turbo"], label="LLM")
|
229 |
-
openai_api_key_textbox = gr.Textbox(
|
230 |
-
|
|
|
231 |
submit = gr.Button("Submit", variant="primary")
|
232 |
|
233 |
with gr.Column(scale=2):
|
|
|
226 |
#input_image.style(height=512, width=512)
|
227 |
instruction = gr.Textbox(placeholder="Enter your instruction/question...", label="Question/Instruction")
|
228 |
llm = gr.Dropdown(["alpaca-lora", "flan-ul2", "gpt-3.5-turbo"], label="LLM")
|
229 |
+
openai_api_key_textbox = gr.Textbox(value='',
|
230 |
+
placeholder="Paste your OpenAI API key (sk-...) and hit Enter (if using OpenAI models, otherwise leave empty)",
|
231 |
+
show_label=False, lines=1, type='password')
|
232 |
submit = gr.Button("Submit", variant="primary")
|
233 |
|
234 |
with gr.Column(scale=2):
|