GattoNero commited on
Commit
5e933dd
·
verified ·
1 Parent(s): 90da6e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -6,7 +6,7 @@ import pandas as pd
6
  from io import StringIO
7
  import logging
8
  from pathlib import Path
9
- from prompt_settings import verification_of_final_answer, yaml_template, yaml_template2
10
  from duckduckgo_search import DDGS
11
 
12
  from llama_index.core import (
@@ -144,7 +144,7 @@ class BasicAgent:
144
  print_coso(f"__call__ text: {text}")
145
  print_coso(f"__call__ file_info: {file_info}")
146
 
147
- text = f"{yaml_template} {verification_of_final_answer} {text}"
148
 
149
  # Se è presente un file, gestiscilo
150
 
@@ -548,9 +548,16 @@ def create_mock_questions():
548
  "file_name": ""
549
  }
550
  '''
551
-
552
-
553
- return whiteList
 
 
 
 
 
 
 
554
 
555
  def process_questions(serviceList):
556
  # 1. Rimuovi dalla serviceList tutte le domande i cui task_id sono in blackList
 
6
  from io import StringIO
7
  import logging
8
  from pathlib import Path
9
+ from prompt_settings import verification_of_final_answer, verification_of_final_answer2, yaml_template, yaml_template2
10
  from duckduckgo_search import DDGS
11
 
12
  from llama_index.core import (
 
144
  print_coso(f"__call__ text: {text}")
145
  print_coso(f"__call__ file_info: {file_info}")
146
 
147
+ text = f"{yaml_template} {verification_of_final_answer2} {text}"
148
 
149
  # Se è presente un file, gestiscilo
150
 
 
548
  "file_name": ""
549
  }
550
  '''
551
+ return [
552
+ {
553
+ 'task_id': '99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3',
554
+ 'question': 'Hi, I\'m making a pie but I could use some help with my shopping list. I have everything I need for the crust, but I\'m not sure about the filling. I got the recipe from my friend Aditi, but she left it as a voice memo and the speaker on my phone is buzzing so I can\'t quite make out what she\'s saying. Could you please listen to the recipe and list all of the ingredients that my friend described? I only want the ingredients for the filling, as I have everything I need to make my favorite pie crust. I\'ve attached the recipe as Strawberry pie.mp3.\n\nIn your response, please only list the ingredients, not any measurements. So if the recipe calls for "a pinch of salt" or "two cups of ripe strawberries" the ingredients on the list would be "salt" and "ripe strawberries".\n\nPlease format your response as a comma separated list of ingredients. Also, please alphabetize the ingredients.',
555
+ 'Level': '1',
556
+ 'file_name': '99c9cc74-fdc8-46c6-8f8d-3ce2d3bfeea3.mp3'
557
+ }
558
+ ]
559
+
560
+ #return whiteList
561
 
562
  def process_questions(serviceList):
563
  # 1. Rimuovi dalla serviceList tutte le domande i cui task_id sono in blackList