whoami02 commited on
Commit
ea722ac
1 Parent(s): eda918e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
58
  with gr.Row():
59
  model_id = gr.Radio(["Zephyr-7b-Beta", "Llama-2-7b-chat"], value="Llama-2-7b-chat",label="LLM Model")
60
  with gr.Row():
61
- mode = gr.Radio(['Document', 'Data'], value='Document',label="QA mode")
62
  persist_directory = "db"
63
  embeddings = HuggingFaceBgeEmbeddings(
64
  model_name = "BAAI/bge-small-en-v1.5",
@@ -102,7 +102,7 @@ with gr.Blocks() as demo:
102
  }
103
  )
104
  history[-1][1] = res['answer']
105
- torch.cuda.empty_cache()
106
  return history
107
  with gr.Column(scale=9): # type: ignore
108
  with gr.Row():
 
58
  with gr.Row():
59
  model_id = gr.Radio(["Zephyr-7b-Beta", "Llama-2-7b-chat"], value="Llama-2-7b-chat",label="LLM Model")
60
  with gr.Row():
61
+ mode = gr.Radio(['OITF Manuals', 'Operations Data'], value='OITF Manuals',label="Data")
62
  persist_directory = "db"
63
  embeddings = HuggingFaceBgeEmbeddings(
64
  model_name = "BAAI/bge-small-en-v1.5",
 
102
  }
103
  )
104
  history[-1][1] = res['answer']
105
+ # torch.cuda.empty_cache()
106
  return history
107
  with gr.Column(scale=9): # type: ignore
108
  with gr.Row():