adrien.aribaut-gaudin
commited on
Commit
•
f343031
1
Parent(s):
25eac81
fix: json loads for the requirements file
Browse files- app.py +1 -1
- src/control/controller.py +2 -0
app.py
CHANGED
@@ -11,4 +11,4 @@ client_db = chromadb.Client()
|
|
11 |
ctrl = Controller(config, client_db, retriever=Retriever())
|
12 |
app = view.run(controller=ctrl, config=config)
|
13 |
|
14 |
-
app.queue().launch()
|
|
|
11 |
ctrl = Controller(config, client_db, retriever=Retriever())
|
12 |
app = view.run(controller=ctrl, config=config)
|
13 |
|
14 |
+
app.queue().launch()
|
src/control/controller.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import asyncio
|
2 |
import os
|
3 |
import shutil
|
|
|
4 |
from typing import Dict
|
5 |
import random
|
6 |
import datetime
|
@@ -291,6 +292,7 @@ class Controller:
|
|
291 |
|
292 |
def generate_response_to_requirements(self):
|
293 |
excel_content = self.get_requirements_from_csv()
|
|
|
294 |
print(excel_content)
|
295 |
excel_name = self.input_csv
|
296 |
if '/' in excel_name:
|
|
|
1 |
import asyncio
|
2 |
import os
|
3 |
import shutil
|
4 |
+
import json
|
5 |
from typing import Dict
|
6 |
import random
|
7 |
import datetime
|
|
|
292 |
|
293 |
def generate_response_to_requirements(self):
|
294 |
excel_content = self.get_requirements_from_csv()
|
295 |
+
excel_content = json.loads(excel_content)
|
296 |
print(excel_content)
|
297 |
excel_name = self.input_csv
|
298 |
if '/' in excel_name:
|