Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -177,3 +177,14 @@ elif menu == "Student Evaluation":
|
|
| 177 |
firebase_put(f"student_quizzes/{selected_id}/{choose_quiz}/Feedback", feedback)
|
| 178 |
st.success("Feedback sent successfully!")
|
| 179 |
st.rerun()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
firebase_put(f"student_quizzes/{selected_id}/{choose_quiz}/Feedback", feedback)
|
| 178 |
st.success("Feedback sent successfully!")
|
| 179 |
st.rerun()
|
| 180 |
+
|
| 181 |
+
# Optional Gradio launcher (no-op if demo missing)
|
| 182 |
+
if _name_ == "_main_":
|
| 183 |
+
try:
|
| 184 |
+
if "demo" in globals() and getattr(globals()["demo"], "launch", None):
|
| 185 |
+
try:
|
| 186 |
+
globals()["demo"].launch(server_name="0.0.0.0", server_port=7860, ssr_mode=False)
|
| 187 |
+
except Exception as e:
|
| 188 |
+
print(f"Gradio demo exists but failed to launch: {e}")
|
| 189 |
+
except Exception as e:
|
| 190 |
+
print(f"Error when attempting to launch Gradio demo: {e}")
|