aizanlabs commited on
Commit
53ad0f3
·
verified ·
1 Parent(s): c1b3675

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -157,7 +157,7 @@ if __name__ == "__main__":
157
  # Example usage
158
  embedding_model_name = 'flax-sentence-embeddings/all_datasets_v3_MiniLM-L12'
159
  lm_model_id = "mistralai/Mistral-7B-Instruct-v0.2"
160
- data_folder = 'sample_embedding_folder2'
161
 
162
  doc_retrieval_gen = DocumentRetrievalAndGeneration(embedding_model_name, lm_model_id, data_folder)
163
 
@@ -245,13 +245,13 @@ if __name__ == "__main__":
245
  "I'm using Code Composer Studio 5.4.0.00091 and enabled FPv4SPD16 floating point support for CortexM4 in TDA2. However, after building the project, the .asm file shows --float_support=vfplib instead of FPv4SPD16. Why is this happening?",
246
  "Could you clarify the maximum number of cameras that can be connected simultaneously to the video input ports on the TDA2x SoC, considering it supports up to 10 multiplexed input ports and includes 3 dedicated video input modules?"]
247
 
248
- file_path = "ticketNames.txt"
249
 
250
- # Read the file content
251
- with open(file_path, "r") as file:
252
- content = file.read()
253
- ticket_names = json.loads(content)
254
- dropdown = gr.Dropdown(label="Sample queries", choices=ticket_names)
255
 
256
  # Define Gradio interface
257
  interface = gr.Interface(
 
157
  # Example usage
158
  embedding_model_name = 'flax-sentence-embeddings/all_datasets_v3_MiniLM-L12'
159
  lm_model_id = "mistralai/Mistral-7B-Instruct-v0.2"
160
+ data_folder = 'text_files'
161
 
162
  doc_retrieval_gen = DocumentRetrievalAndGeneration(embedding_model_name, lm_model_id, data_folder)
163
 
 
245
  "I'm using Code Composer Studio 5.4.0.00091 and enabled FPv4SPD16 floating point support for CortexM4 in TDA2. However, after building the project, the .asm file shows --float_support=vfplib instead of FPv4SPD16. Why is this happening?",
246
  "Could you clarify the maximum number of cameras that can be connected simultaneously to the video input ports on the TDA2x SoC, considering it supports up to 10 multiplexed input ports and includes 3 dedicated video input modules?"]
247
 
248
+ # file_path = "ticketNames.txt"
249
 
250
+ # # Read the file content
251
+ # with open(file_path, "r") as file:
252
+ # content = file.read()
253
+ # ticket_names = json.loads(content)
254
+ # dropdown = gr.Dropdown(label="Sample queries", choices=ticket_names)
255
 
256
  # Define Gradio interface
257
  interface = gr.Interface(