Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
from gpt_index import
|
2 |
-
from langchain.chat_models import ChatOpenAI
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
|
@@ -14,4 +13,4 @@ demo = gr.Interface(fn=chatbot,
|
|
14 |
inputs=gr.components.Textbox(lines=7, label="Enter your question"),
|
15 |
outputs=gr.components.Textbox(lines=7, label="Answer"),
|
16 |
title="NFT AI Chatbot")
|
17 |
-
demo.launch(
|
|
|
1 |
+
from gpt_index import GPTSimpleVectorIndex
|
|
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
|
|
|
13 |
inputs=gr.components.Textbox(lines=7, label="Enter your question"),
|
14 |
outputs=gr.components.Textbox(lines=7, label="Answer"),
|
15 |
title="NFT AI Chatbot")
|
16 |
+
demo.launch()
|