Spaces:
Runtime error
Runtime error
PierreHanna
commited on
Commit
β’
005a146
1
Parent(s):
fe3e9c5
Update app.py
Browse files
app.py
CHANGED
@@ -64,9 +64,12 @@ def process(prompt, lang):
|
|
64 |
print("----")
|
65 |
for i in range(len(I[0])):
|
66 |
print(audio_names[I[0][i]], " with distance ", D[0][i])
|
67 |
-
print(" url : ", url_dict[audio_names[I[0][i]]])
|
|
|
|
|
68 |
|
69 |
-
return [url_dict[audio_names[I[0][0]]], url_dict[audio_names[I[0][1]]], url_dict[audio_names[I[0][2]]], url_dict[audio_names[I[0][3]]], url_dict[audio_names[I[0][4]]]] #######
|
|
|
70 |
|
71 |
inputs = [gr.Textbox(label="Input", value="type your description", max_lines=2),
|
72 |
gr.Radio(label="Language", choices=["en"], value="en")]
|
|
|
64 |
print("----")
|
65 |
for i in range(len(I[0])):
|
66 |
print(audio_names[I[0][i]], " with distance ", D[0][i])
|
67 |
+
#print(" url : ", url_dict[audio_names[I[0][i]]])
|
68 |
+
print(" url : ", get_url(I[0][i], audio_names, url_dict))
|
69 |
+
|
70 |
|
71 |
+
#return [url_dict[audio_names[I[0][0]]], url_dict[audio_names[I[0][1]]], url_dict[audio_names[I[0][2]]], url_dict[audio_names[I[0][3]]], url_dict[audio_names[I[0][4]]]] #######
|
72 |
+
return [get_url(I[0][0], audio_names, url_dict), get_url(I[0][1], audio_names, url_dict), get_url(I[0][2], audio_names, url_dict), get_url(I[0][3], audio_names, url_dict), get_url(I[0][4], audio_names, url_dict)] #######
|
73 |
|
74 |
inputs = [gr.Textbox(label="Input", value="type your description", max_lines=2),
|
75 |
gr.Radio(label="Language", choices=["en"], value="en")]
|