Guiyom commited on
Commit
af8fac4
·
1 Parent(s): f482498

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,13 +90,13 @@ with gr.Blocks() as demo:
90
 
91
  def uploaddetailsfromreport(report):
92
  # Extract title of the focus group
93
- title = re.search(r'title is:\n(.+)', input_string).group(1)
94
 
95
  # Extract questions
96
- questions = re.findall(r'Question (\d+): (.+)', input_string)
97
 
98
  # Extract focus group profiles and participant answers
99
- profiles = re.findall(r'// Profile (\d+) //\n(.*?)Participants answers:', input_string, re.DOTALL)
100
  participants = []
101
  for profile in profiles:
102
  profile_id = profile[0]
 
90
 
91
  def uploaddetailsfromreport(report):
92
  # Extract title of the focus group
93
+ title = re.search(r'title is:\n(.+)', report).group(1)
94
 
95
  # Extract questions
96
+ questions = re.findall(r'Question (\d+): (.+)', report)
97
 
98
  # Extract focus group profiles and participant answers
99
+ profiles = re.findall(r'// Profile (\d+) //\n(.*?)Participants answers:', report, re.DOTALL)
100
  participants = []
101
  for profile in profiles:
102
  profile_id = profile[0]