ancerlop commited on
Commit
ba6e0d8
·
1 Parent(s): 2892c38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -45,14 +45,14 @@ def process_input(text, rag, prompt_template):
45
  json_text = generate(prompt)
46
 
47
  # Convertimos el generador en una cadena JSON
48
- json_str = ''.join(json_text)
49
 
50
  # Convertimos la cadena JSON en un objeto JSON
51
- json_obj = json.loads(json_str)
52
 
53
  # Generamos el archivo JSON
54
- with open('output.json', 'w') as f:
55
- json.dump(json_obj, f)
56
 
57
  return text
58
 
 
45
  json_text = generate(prompt)
46
 
47
  # Convertimos el generador en una cadena JSON
48
+ #json_str = ''.join(json_text)
49
 
50
  # Convertimos la cadena JSON en un objeto JSON
51
+ #json_obj = json.loads(json_str)
52
 
53
  # Generamos el archivo JSON
54
+ #with open('output.json', 'w') as f:
55
+ # json.dump(json_obj, f)
56
 
57
  return text
58