kasim90 commited on
Commit
0693177
Β·
verified Β·
1 Parent(s): fe4ee33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import spaces
8
  #----------------------------
9
  import time
10
  import gradio as gr
11
-
12
  def slow_echo(message, history):
13
  for i in range(len(message)):
14
  main()
@@ -25,7 +25,7 @@ demo = gr.ChatInterface(
25
  )
26
 
27
  if __name__ == "__main__":
28
- demo.launch()
29
 
30
  #--------------------
31
 
 
8
  #----------------------------
9
  import time
10
  import gradio as gr
11
+ @spaces.GPU
12
  def slow_echo(message, history):
13
  for i in range(len(message)):
14
  main()
 
25
  )
26
 
27
  if __name__ == "__main__":
28
+ demo.launch(ssr=False)
29
 
30
  #--------------------
31