Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
import gradio as gr
|
3 |
from llama_index import GPTVectorStoreIndex
|
4 |
|
|
|
|
|
5 |
def response(message):
|
6 |
response = "You said: " + message
|
7 |
return response
|
@@ -51,6 +53,7 @@ with block:
|
|
51 |
)
|
52 |
|
53 |
fn = response
|
|
|
54 |
|
55 |
# submit.click(chat, inputs=[message], outputs=[chatbot])
|
56 |
|
|
|
2 |
import gradio as gr
|
3 |
from llama_index import GPTVectorStoreIndex
|
4 |
|
5 |
+
openai.api_key = OPENAI_API_KEY
|
6 |
+
|
7 |
def response(message):
|
8 |
response = "You said: " + message
|
9 |
return response
|
|
|
53 |
)
|
54 |
|
55 |
fn = response
|
56 |
+
|
57 |
|
58 |
# submit.click(chat, inputs=[message], outputs=[chatbot])
|
59 |
|