Update app.py
Browse files
app.py
CHANGED
@@ -387,7 +387,6 @@ from langgraph.graph import StateGraph, END
|
|
387 |
from pydantic import BaseModel
|
388 |
import gradio as gr
|
389 |
import os
|
390 |
-
import time
|
391 |
if os.environ.get("SPACES_ZERO_GPU") is not None:
|
392 |
import spaces
|
393 |
else:
|
@@ -552,8 +551,7 @@ def payment_state(state: VisitorState):
|
|
552 |
else:
|
553 |
return {"messages": ["Payment failed due to an error. Please try again later."], "next": END}
|
554 |
|
555 |
-
def final_state(state: VisitorState)
|
556 |
-
time.sleep(5)
|
557 |
"""FinalState: Send email confirmation and finalize the appointment."""
|
558 |
if state.payment_confirmed:
|
559 |
appointment_details = f"Doctor: {state.doctor_name}\nTime: {state.selected_slot}"
|
|
|
387 |
from pydantic import BaseModel
|
388 |
import gradio as gr
|
389 |
import os
|
|
|
390 |
if os.environ.get("SPACES_ZERO_GPU") is not None:
|
391 |
import spaces
|
392 |
else:
|
|
|
551 |
else:
|
552 |
return {"messages": ["Payment failed due to an error. Please try again later."], "next": END}
|
553 |
|
554 |
+
def final_state(state: VisitorState)
|
|
|
555 |
"""FinalState: Send email confirmation and finalize the appointment."""
|
556 |
if state.payment_confirmed:
|
557 |
appointment_details = f"Doctor: {state.doctor_name}\nTime: {state.selected_slot}"
|