Spaces:
Running
Running
capradeepgujaran
commited on
Commit
•
1b4472e
1
Parent(s):
5eb4568
Update app.py
Browse files
app.py
CHANGED
@@ -1071,11 +1071,11 @@ def create_quiz_interface():
|
|
1071 |
)
|
1072 |
|
1073 |
score_display.change(
|
1074 |
-
fn=lambda s, n, c,
|
1075 |
-
inputs=[score_display, name, course_name,
|
1076 |
outputs=certificate_display
|
1077 |
)
|
1078 |
-
|
1079 |
return demo
|
1080 |
|
1081 |
if __name__ == "__main__":
|
|
|
1071 |
)
|
1072 |
|
1073 |
score_display.change(
|
1074 |
+
fn=lambda s, n, c, p: quiz_app.certificate_generator.generate(s, n, c, quiz_app.logo_path, p) or gr.update(value=None),
|
1075 |
+
inputs=[score_display, name, course_name, participant_photo], # company_logo removed
|
1076 |
outputs=certificate_display
|
1077 |
)
|
1078 |
+
|
1079 |
return demo
|
1080 |
|
1081 |
if __name__ == "__main__":
|