json.loads
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
import os
|
|
|
4 |
from gradio_client import Client
|
5 |
|
6 |
MAX_ANS_COMP = 30
|
@@ -15,7 +16,7 @@ def gen_quiz_ques_local(grade, num_questions):
|
|
15 |
api_name="/gen_quiz_ques"
|
16 |
)
|
17 |
print(res)
|
18 |
-
return res
|
19 |
|
20 |
|
21 |
def generate_quiz(grade, num_questions):
|
|
|
1 |
import gradio as gr
|
2 |
import random
|
3 |
import os
|
4 |
+
import json
|
5 |
from gradio_client import Client
|
6 |
|
7 |
MAX_ANS_COMP = 30
|
|
|
16 |
api_name="/gen_quiz_ques"
|
17 |
)
|
18 |
print(res)
|
19 |
+
return json.loads(res)
|
20 |
|
21 |
|
22 |
def generate_quiz(grade, num_questions):
|