pragneshbarik commited on
Commit
b615916
β€’
1 Parent(s): 390c758

moved search_client, chat_client, utils to middleware

Browse files
components/generate_chat_stream.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
- from utils import gen_augmented_prompt_via_websearch
3
- from chat_client import chat
4
 
5
 
6
  def generate_chat_stream(session_state, prompt, config):
 
1
  import streamlit as st
2
+ from middlewares.utils import gen_augmented_prompt_via_websearch
3
+ from middlewares.chat_client import chat
4
 
5
 
6
  def generate_chat_stream(session_state, prompt, config):
chat_client.py β†’ middlewares/chat_client.py RENAMED
File without changes
search_client.py β†’ middlewares/search_client.py RENAMED
File without changes
utils.py β†’ middlewares/utils.py RENAMED
@@ -1,7 +1,7 @@
1
  from sentence_transformers import CrossEncoder
2
  import math
3
  import numpy as np
4
- from search_client import SearchClient
5
  import os
6
  from dotenv import load_dotenv
7
 
 
1
  from sentence_transformers import CrossEncoder
2
  import math
3
  import numpy as np
4
+ from middlewares.search_client import SearchClient
5
  import os
6
  from dotenv import load_dotenv
7