anton-l HF staff commited on
Commit
11b632d
·
1 Parent(s): e8720a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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,