Spaces:
Running
on
Zero
Running
on
Zero
as-cle-bert
commited on
Update app.py
Browse files
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:
|