Spaces:
Runtime error
Runtime error
matias
commited on
Commit
·
955abc0
1
Parent(s):
465ee60
trying
Browse files
app.py
CHANGED
@@ -3,9 +3,7 @@ import torch
|
|
3 |
import gradio as gr
|
4 |
from googletrans import Translator
|
5 |
import os
|
6 |
-
os.environ
|
7 |
-
|
8 |
-
|
9 |
if torch.cuda.is_available():
|
10 |
device = "cuda"
|
11 |
torch_dtype = torch.float16
|
@@ -49,7 +47,7 @@ with demo:
|
|
49 |
with gr.Column():
|
50 |
output = gr.Audio()
|
51 |
#output = gr.Video(label="Output")
|
52 |
-
|
53 |
|
54 |
|
55 |
demo.launch()
|
|
|
3 |
import gradio as gr
|
4 |
from googletrans import Translator
|
5 |
import os
|
6 |
+
print(os.environ)
|
|
|
|
|
7 |
if torch.cuda.is_available():
|
8 |
device = "cuda"
|
9 |
torch_dtype = torch.float16
|
|
|
47 |
with gr.Column():
|
48 |
output = gr.Audio()
|
49 |
#output = gr.Video(label="Output")
|
50 |
+
button.click(generate_sound,text,output)
|
51 |
|
52 |
|
53 |
demo.launch()
|