Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|