Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(.+)',
|
| 94 |
|
| 95 |
# Extract questions
|
| 96 |
-
questions = re.findall(r'Question (\d+): (.+)',
|
| 97 |
|
| 98 |
# Extract focus group profiles and participant answers
|
| 99 |
-
profiles = re.findall(r'// Profile (\d+) //\n(.*?)Participants answers:',
|
| 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]
|