Spaces:
Runtime error
Runtime error
captain-awesome
commited on
Commit
•
d5d564a
1
Parent(s):
09d7bfd
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,7 @@ from langchain.llms import CTransformers
|
|
46 |
import streamlit as st
|
47 |
from langchain.document_loaders.base import BaseLoader
|
48 |
from langchain.schema import Document
|
|
|
49 |
|
50 |
FILE_LOADER_MAPPING = {
|
51 |
".csv": (CSVLoader, {"encoding": "utf-8"}),
|
@@ -387,7 +388,7 @@ def retrieve_bot_answer(query):
|
|
387 |
# if __name__ == "__main__":
|
388 |
# main()
|
389 |
|
390 |
-
|
391 |
|
392 |
def main():
|
393 |
# Upload files
|
|
|
46 |
import streamlit as st
|
47 |
from langchain.document_loaders.base import BaseLoader
|
48 |
from langchain.schema import Document
|
49 |
+
import gradio as gr
|
50 |
|
51 |
FILE_LOADER_MAPPING = {
|
52 |
".csv": (CSVLoader, {"encoding": "utf-8"}),
|
|
|
388 |
# if __name__ == "__main__":
|
389 |
# main()
|
390 |
|
391 |
+
|
392 |
|
393 |
def main():
|
394 |
# Upload files
|