Sreekan commited on
Commit
2e2d674
·
verified ·
1 Parent(s): ed68491

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -387,6 +387,7 @@ from langgraph.graph import StateGraph, END
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:
@@ -552,7 +553,7 @@ def payment_state(state: VisitorState):
552
  return {"messages": ["Payment failed due to an error. Please try again later."], "next": END}
553
 
554
  def final_state(state: VisitorState):
555
- delay(5)
556
  """FinalState: Send email confirmation and finalize the appointment."""
557
  if state.payment_confirmed:
558
  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
+ import time
391
  if os.environ.get("SPACES_ZERO_GPU") is not None:
392
  import spaces
393
  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}"