fffiloni commited on
Commit
23ffa3b
β€’
1 Parent(s): 7a2d549

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -63,6 +63,7 @@ def diffuse(prompt, guidance_scale, nb_iterations, seed):
63
  images.append(image)
64
 
65
  print("Stable Diffusion has finished")
 
66
 
67
  return images
68
 
@@ -86,7 +87,8 @@ def translate(audio):
86
  translation = whisper.decode(whisper_model, mel, translate_options)
87
 
88
  print("language spoken: " + transcription.language)
89
- print("transcript: " + transcription.text)
 
90
  print("translated: " + translation.text)
91
 
92
  return transcription.language, transcription.text, translation.text
@@ -177,6 +179,7 @@ css = """
177
  #diffuse_btn {
178
  font-size: 2em;
179
  padding: 20px;
 
180
  }
181
  #notice {
182
  padding: 20px 14px 10px;
@@ -293,6 +296,8 @@ with gr.Blocks(css=css) as demo:
293
  )
294
  sd_output = gr.Gallery().style(grid=2, height="auto")
295
 
 
 
296
  gr.Markdown("""
297
  ### πŸ“Œ About the models
298
  <p style='font-size: 1em;line-height: 1.5em;'>
 
63
  images.append(image)
64
 
65
  print("Stable Diffusion has finished")
66
+ print("β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”")
67
 
68
  return images
69
 
 
87
  translation = whisper.decode(whisper_model, mel, translate_options)
88
 
89
  print("language spoken: " + transcription.language)
90
+ print("transcript: " + transcription.text)
91
+ print("β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”")
92
  print("translated: " + translation.text)
93
 
94
  return transcription.language, transcription.text, translation.text
 
179
  #diffuse_btn {
180
  font-size: 2em;
181
  padding: 20px;
182
+ margin-bottom: 20px;
183
  }
184
  #notice {
185
  padding: 20px 14px 10px;
 
296
  )
297
  sd_output = gr.Gallery().style(grid=2, height="auto")
298
 
299
+
300
+
301
  gr.Markdown("""
302
  ### πŸ“Œ About the models
303
  <p style='font-size: 1em;line-height: 1.5em;'>