Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from typing import List, Dict
|
|
|
3 |
from langchain_core.prompts import ChatPromptTemplate
|
4 |
-
from langchain_community.llms.huggingface_pipeline import HuggingFacePipeline
|
5 |
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
6 |
import chromadb
|
7 |
from chromadb.utils import embedding_functions
|
@@ -190,7 +190,5 @@ iface = gr.ChatInterface(
|
|
190 |
if __name__ == "__main__":
|
191 |
iface.launch(
|
192 |
share=False,
|
193 |
-
|
194 |
-
show_error=True,
|
195 |
-
enable_queue=True
|
196 |
)
|
|
|
1 |
import gradio as gr
|
2 |
from typing import List, Dict
|
3 |
+
from langchain_huggingface import HuggingFacePipeline # Fixed import
|
4 |
from langchain_core.prompts import ChatPromptTemplate
|
|
|
5 |
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
6 |
import chromadb
|
7 |
from chromadb.utils import embedding_functions
|
|
|
190 |
if __name__ == "__main__":
|
191 |
iface.launch(
|
192 |
share=False,
|
193 |
+
show_error=True
|
|
|
|
|
194 |
)
|