muhtasham commited on
Commit
b522e6f
1 Parent(s): 6d981ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -18,7 +18,6 @@ def text2image_latent(text):
18
  diversity=5
19
  image_bytes = latent(text, steps, width, height, num_images, diversity)
20
 
21
- # Algo from spaces/Gradio-Blocks/latent_gpt2_story/blob/main/app.py
22
  generated_images = []
23
  for image in image_bytes[1]:
24
  image_str = image[0]
@@ -29,7 +28,6 @@ def text2image_latent(text):
29
 
30
  return generated_images
31
 
32
-
33
  def speech_to_text(mic=None, file=None):
34
  if mic is not None:
35
  audio = mic
@@ -40,8 +38,6 @@ def speech_to_text(mic=None, file=None):
40
  transcription = asr(audio)["text"]
41
  return transcription
42
 
43
-
44
-
45
  def combine_audio_image(audio_file, gallery):
46
  "Create and rerturn a combined image from the audio and image"
47
  generated_images = []
 
18
  diversity=5
19
  image_bytes = latent(text, steps, width, height, num_images, diversity)
20
 
 
21
  generated_images = []
22
  for image in image_bytes[1]:
23
  image_str = image[0]
 
28
 
29
  return generated_images
30
 
 
31
  def speech_to_text(mic=None, file=None):
32
  if mic is not None:
33
  audio = mic
 
38
  transcription = asr(audio)["text"]
39
  return transcription
40
 
 
 
41
  def combine_audio_image(audio_file, gallery):
42
  "Create and rerturn a combined image from the audio and image"
43
  generated_images = []