Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(['
|
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():
|