as-cle-bert commited on
Commit
09569ec
1 Parent(s): c1e81f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import time
3
  from imgen import *
 
4
 
5
  def print_like_dislike(x: gr.LikeData):
6
  print(x.index, x.value, x.liked)
@@ -13,7 +14,7 @@ def add_message(history, message):
13
  return history, gr.MultimodalTextbox(value=None, interactive=False)
14
 
15
 
16
-
17
  def bot(history):
18
  if type(history[-1][0]) != tuple:
19
  try:
 
1
  import gradio as gr
2
  import time
3
  from imgen import *
4
+ import spaces
5
 
6
  def print_like_dislike(x: gr.LikeData):
7
  print(x.index, x.value, x.liked)
 
14
  return history, gr.MultimodalTextbox(value=None, interactive=False)
15
 
16
 
17
+ @spaces.GPU
18
  def bot(history):
19
  if type(history[-1][0]) != tuple:
20
  try: