Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
|
4 |
def echo(message, chat_history):
|
5 |
bot_message = 'echo ' + message
|
@@ -19,7 +19,7 @@ with gr.Blocks() as demo:
|
|
19 |
|
20 |
# OpenAI key
|
21 |
openai_key_textbox = gr.Textbox(label='OpenAI Key')
|
22 |
-
openai_key_button = gr.Button(
|
23 |
|
24 |
# Titles
|
25 |
with gr.Row():
|
|
|
1 |
import gradio as gr
|
2 |
+
import openai
|
3 |
|
4 |
def echo(message, chat_history):
|
5 |
bot_message = 'echo ' + message
|
|
|
19 |
|
20 |
# OpenAI key
|
21 |
openai_key_textbox = gr.Textbox(label='OpenAI Key')
|
22 |
+
openai_key_button = gr.Button(value='Test OpenAI Key')
|
23 |
|
24 |
# Titles
|
25 |
with gr.Row():
|