Spaces:
Runtime error
Runtime error
test to print logs and shar
Browse files- app.py +1 -1
- predict.py +1 -0
- process_audio.py +2 -0
app.py
CHANGED
@@ -22,4 +22,4 @@ demo = gr.Interface(
|
|
22 |
description=description
|
23 |
)
|
24 |
|
25 |
-
demo.launch()
|
|
|
22 |
description=description
|
23 |
)
|
24 |
|
25 |
+
demo.launch(share=True)
|
predict.py
CHANGED
@@ -48,6 +48,7 @@ def prediction(file_path):
|
|
48 |
if total == 0:
|
49 |
return {"real": 0.0, "fake": 0.0}
|
50 |
|
|
|
51 |
return {
|
52 |
"real": round(total_real / total, 2),
|
53 |
"fake": round(total_fake / total, 2)
|
|
|
48 |
if total == 0:
|
49 |
return {"real": 0.0, "fake": 0.0}
|
50 |
|
51 |
+
print("real: " + str(round(total_real / total, 2)) + " fake" + str(round(total_fake / total, 2)))
|
52 |
return {
|
53 |
"real": round(total_real / total, 2),
|
54 |
"fake": round(total_fake / total, 2)
|
process_audio.py
CHANGED
@@ -110,4 +110,6 @@ def create_mel_spectrograms(file_path, segment_duration, start_offset):
|
|
110 |
buffer.close()
|
111 |
plt.close(fig)
|
112 |
|
|
|
|
|
113 |
return pil_images
|
|
|
110 |
buffer.close()
|
111 |
plt.close(fig)
|
112 |
|
113 |
+
print(pil_images)
|
114 |
+
|
115 |
return pil_images
|