AnjanSB commited on
Commit
35d0dc6
·
verified ·
1 Parent(s): 08b3aaa

feat: fix timeout issue

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,6 +20,7 @@ def respond(
20
  client = OpenAI(
21
  api_key=api_key,
22
  base_url="https://api.groq.com/openai/v1",
 
23
  )
24
 
25
  def sanitize_messages(history):
@@ -73,4 +74,4 @@ chatbot = gr.ChatInterface(
73
  )
74
 
75
  if __name__ == "__main__":
76
- chatbot.launch()
 
20
  client = OpenAI(
21
  api_key=api_key,
22
  base_url="https://api.groq.com/openai/v1",
23
+ timeout=120.0
24
  )
25
 
26
  def sanitize_messages(history):
 
74
  )
75
 
76
  if __name__ == "__main__":
77
+ chatbot.queue().launch()