Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import random
|
2 |
import torch
|
|
|
3 |
from tqdm import tqdm
|
4 |
from functools import partialmethod
|
5 |
import gradio as gr
|
@@ -41,7 +42,7 @@ def dalle_wrapper(prompt: str):
|
|
41 |
top_p=top_p
|
42 |
)
|
43 |
title = f"<b>{prompt}</b>"
|
44 |
-
return title, images[0]
|
45 |
|
46 |
|
47 |
translator = gr.Interface(fn=translation_wrapper,
|
|
|
1 |
import random
|
2 |
import torch
|
3 |
+
import numpy as np
|
4 |
from tqdm import tqdm
|
5 |
from functools import partialmethod
|
6 |
import gradio as gr
|
|
|
42 |
top_p=top_p
|
43 |
)
|
44 |
title = f"<b>{prompt}</b>"
|
45 |
+
return title, np.array(images[0])
|
46 |
|
47 |
|
48 |
translator = gr.Interface(fn=translation_wrapper,
|