pgurazada1 commited on
Commit
1b055d9
1 Parent(s): 6dfcb5f

Update chat_interface.py

Browse files
Files changed (1) hide show
  1. chat_interface.py +2 -3
chat_interface.py CHANGED
@@ -3,7 +3,7 @@ import chromadb
3
 
4
  import gradio as gr
5
 
6
- from openai import OpenAI
7
 
8
  from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
9
  from langchain_community.vectorstores import Chroma
@@ -57,7 +57,6 @@ client = AzureOpenAI(
57
  embedding_model = SentenceTransformerEmbeddings(model_name='thenlper/gte-large')
58
  qna_model = 'gpt-35-turbo'
59
 
60
-
61
  chromadb_client = chromadb.PersistentClient(path='./health_policy_db')
62
 
63
  vectorstore_persisted = Chroma(
@@ -110,7 +109,7 @@ def predict(input: str, history):
110
 
111
  prediction = response.choices[0].message.content.strip()
112
  except Exception as e:
113
- prediction = f"Sorry, I cannot answer your question at this point. Please contact our hotline: 1-800-INSURANCE"
114
 
115
  return prediction
116
 
 
3
 
4
  import gradio as gr
5
 
6
+ from openai import AzureOpenAI
7
 
8
  from langchain_community.embeddings.sentence_transformer import SentenceTransformerEmbeddings
9
  from langchain_community.vectorstores import Chroma
 
57
  embedding_model = SentenceTransformerEmbeddings(model_name='thenlper/gte-large')
58
  qna_model = 'gpt-35-turbo'
59
 
 
60
  chromadb_client = chromadb.PersistentClient(path='./health_policy_db')
61
 
62
  vectorstore_persisted = Chroma(
 
109
 
110
  prediction = response.choices[0].message.content.strip()
111
  except Exception as e:
112
+ prediction = "Sorry, I cannot answer your question at this point. Please contact our hotline: 1-800-INSURANCE"
113
 
114
  return prediction
115