Kabatubare commited on
Commit
25f1221
·
verified ·
1 Parent(s): 3c3ea00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -68,26 +68,14 @@ iface = gr.Interface(
68
  fn=predict_voice,
69
  inputs=gr.Audio(label="Upload Audio File", type="filepath"),
70
  outputs=[
71
- gr.Textbox(label="Analysis", type="text"), # Corrected type to "text"
72
  gr.Plot(label="Waveform"),
73
  gr.Plot(label="Spectrogram")
74
  ],
75
- layout="vertical",
76
  title="Voice Clone Detection",
77
  description="This tool determines whether a voice is real or an AI-generated clone. Audio files judged to be authentic and produced by humans are classified as 'Bonafide'. In contrast, those perceived to be synthetically generated are labeled as 'Spoof'. Upload an audio file for analysis."
 
78
  )
79
 
80
- # Customize the CSS to adjust the layout and component sizes
81
- css = """
82
- .gradio-container {
83
- max-width: 960px; /* Adjust the maximum width as needed */
84
- }
85
- .input-container {
86
- width: 25%; /* Smaller input area */
87
- }
88
- .output-container {
89
- width: 74%; /* Larger output area */
90
- }
91
- """
92
-
93
  iface.launch(css=css)
 
68
  fn=predict_voice,
69
  inputs=gr.Audio(label="Upload Audio File", type="filepath"),
70
  outputs=[
71
+ gr.Textbox(label="Analysis", type="text"), # Ensure type is correctly set to "text"
72
  gr.Plot(label="Waveform"),
73
  gr.Plot(label="Spectrogram")
74
  ],
 
75
  title="Voice Clone Detection",
76
  description="This tool determines whether a voice is real or an AI-generated clone. Audio files judged to be authentic and produced by humans are classified as 'Bonafide'. In contrast, those perceived to be synthetically generated are labeled as 'Spoof'. Upload an audio file for analysis."
77
+ # Removed the `layout` parameter
78
  )
79
 
80
+ # Assuming css is defined as provided in your message
 
 
 
 
 
 
 
 
 
 
 
 
81
  iface.launch(css=css)