Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def q_gen(topics_list, count, difficulty):
|
|
| 100 |
content = response.text
|
| 101 |
df = pd.DataFrame(ast.literal_eval(content))
|
| 102 |
if df.columns[0] == "Not enough questions":
|
| 103 |
-
return "Not enough questions",
|
| 104 |
options_df = pd.DataFrame(df['questions_options'])
|
| 105 |
columns_shape = pd.DataFrame(df['questions_options'].tolist()).shape[1]
|
| 106 |
for i in range(columns_shape):
|
|
|
|
| 100 |
content = response.text
|
| 101 |
df = pd.DataFrame(ast.literal_eval(content))
|
| 102 |
if df.columns[0] == "Not enough questions":
|
| 103 |
+
return "Not enough questions", df
|
| 104 |
options_df = pd.DataFrame(df['questions_options'])
|
| 105 |
columns_shape = pd.DataFrame(df['questions_options'].tolist()).shape[1]
|
| 106 |
for i in range(columns_shape):
|