Spaces:
Runtime error
Runtime error
Commit
·
cd564e4
1
Parent(s):
d5f082b
Update app.py
Browse files
app.py
CHANGED
@@ -45,9 +45,11 @@ def respond(message, chat_history):
|
|
45 |
time.sleep(1)
|
46 |
return "", chat_history
|
47 |
|
48 |
-
with gr.Blocks(
|
49 |
|
50 |
-
gr.Markdown("
|
|
|
|
|
51 |
|
52 |
with gr.Tab("OpenAI API Key Submission"):
|
53 |
api_input = gr.Textbox(label = "API Key",
|
|
|
45 |
time.sleep(1)
|
46 |
return "", chat_history
|
47 |
|
48 |
+
with gr.Blocks() as demo:
|
49 |
|
50 |
+
gr.Markdown("# Langchain Coding Assistant")
|
51 |
+
|
52 |
+
gr.Markdown("## This Gradio app is powered by ChatGPT and LangChain. You can submit your OpenAI API key and use the chatbot to get assistance for your coding questions. This chatbot can also provide assistance coding with LangChain. \n ### 1. Enter your OpenAI API key in the 'OpenAI API Key Submission' tab. \n ### 2. Click 'Submit' to set your API key.\n ### 3. Go to the 'Coding Assistant' tab and provide your prompt. You can re-verify that your API Key was set correctly in this tab as well.")
|
53 |
|
54 |
with gr.Tab("OpenAI API Key Submission"):
|
55 |
api_input = gr.Textbox(label = "API Key",
|