Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,7 +302,7 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
| 302 |
system="You are a helpful assistant.", # Modified to match Qwen's API
|
| 303 |
api_name="/model_chat"
|
| 304 |
)
|
| 305 |
-
|
| 306 |
output_json = json.loads(f"{response}")
|
| 307 |
print('output json', output_json)
|
| 308 |
|
|
@@ -324,6 +324,7 @@ with gr.Blocks(title="Quiz Maker", theme=gr.themes.Default(primary_hue="green",
|
|
| 324 |
|
| 325 |
radio = gr.Radio(choices=choice_list, label=question, visible=True, interactive=True)
|
| 326 |
question_radio_list.append(radio)
|
|
|
|
| 327 |
|
| 328 |
if len(question_radio_list) == 10:
|
| 329 |
break
|
|
|
|
| 302 |
system="You are a helpful assistant.", # Modified to match Qwen's API
|
| 303 |
api_name="/model_chat"
|
| 304 |
)
|
| 305 |
+
print(response)
|
| 306 |
output_json = json.loads(f"{response}")
|
| 307 |
print('output json', output_json)
|
| 308 |
|
|
|
|
| 324 |
|
| 325 |
radio = gr.Radio(choices=choice_list, label=question, visible=True, interactive=True)
|
| 326 |
question_radio_list.append(radio)
|
| 327 |
+
print('question_radio_list',question_radio_list)
|
| 328 |
|
| 329 |
if len(question_radio_list) == 10:
|
| 330 |
break
|