Spaces:
Runtime error
Runtime error
Commit
·
974df2a
1
Parent(s):
3c3ce10
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,6 @@ with gr.Blocks() as demo:
|
|
79 |
|
80 |
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 with grant writing. \n ### 1. Enter your OpenAI API key. \n ### 2. Click 'Submit' to set your API key.\n ### 3. Upload the documents that you would like the model to be aware of and then create the vectorstore. Please note that once the vectorstore is created, it will persist and the documents will remain in the vectorstore. \n 4. Provide your prompt.")
|
81 |
|
82 |
-
#create chat history
|
83 |
-
chat_history = []
|
84 |
with gr.Row():
|
85 |
#create textbox for API input
|
86 |
api_input = gr.Textbox(label = "API Key",
|
|
|
79 |
|
80 |
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 with grant writing. \n ### 1. Enter your OpenAI API key. \n ### 2. Click 'Submit' to set your API key.\n ### 3. Upload the documents that you would like the model to be aware of and then create the vectorstore. Please note that once the vectorstore is created, it will persist and the documents will remain in the vectorstore. \n 4. Provide your prompt.")
|
81 |
|
|
|
|
|
82 |
with gr.Row():
|
83 |
#create textbox for API input
|
84 |
api_input = gr.Textbox(label = "API Key",
|