File size: 19,134 Bytes
7bde1c4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
import gradio as gr
from scipy.io.wavfile import write
import librosa
import os

examples = []
folder_path = "./Data Record"
for file_name in os.listdir(folder_path):
    if file_name.endswith(".txt"):
        file_path = os.path.join(folder_path, file_name)
        with open(file_path, "r", encoding="utf-8") as f:
            content = f.read()
            examples.append([file_name.split(".")[0], content])

examples1 = examples[0:400]
examples2 = examples[400:800]
examples3 = examples[800:1200]
examples4 = examples[1200:1600]
examples5 = examples[1600:2000]
examples6 = examples[2000:2400]
examples7 = examples[2400:2800]
examples8 = examples[2800:3200]
examples9 = examples[3200:3600]
examples10 = examples[3600:4000]
examples11 = examples[4000:4400]
examples12 = examples[4400:4800]
examples13 = examples[4800:5200]
examples14 = examples[5200:5600]
examples15 = examples[5600:6000]
examples16 = examples[6000:6400]
examples17 = examples[6400:6800]
examples18 = examples[6800:7200]
examples19 = examples[7200:7600]
examples20 = examples[7600:8000]
examples21 = examples[8000:8400]
examples22 = examples[8400:8800]
examples23 = examples[8800:9200]
examples24 = examples[9200:9600]
examples25 = examples[9600:10000]
examples26 = examples[10000:10400]
examples27 = examples[10400:10800]
examples28 = examples[10800:11200]
examples29 = examples[11200:11600]
examples30 = examples[11600:12000]
examples31 = examples[12000:12400]
examples32 = examples[12400:12800]
examples33 = examples[12800:13200]
examples34 = examples[13200:13600]
examples35 = examples[13600:14000]

folder_name = "Data"
path = folder_name
if not os.path.exists(path):
    os.makedirs(path)


def speak1(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data1/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak2(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data2/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak3(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data3/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak4(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"

def speak(text1, text2, path):
    warn_output = ""
    if (path is not None):
        warn_output = (
            "WARNING: You've uploaded an audio file and used the microphone. "
            "The recorded file from the microphone will be used and the uploaded audio will be discarded.\n"
        )

    elif (path is None):
        return "ERROR: You have to either use the microphone or upload an audio file"

    X_new, sr_new = librosa.load(path)
    folder_name = "./Data/"
    dst = folder_name + text1 + ".wav"
    write(dst, sr_new, X_new)

    return "Done"


title = "Data"

p1 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples1,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p2 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples2,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p3 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples3,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p4 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples4,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p5 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples5,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p6 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples6,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p7 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples7,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p8 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples8,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p9 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples9,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p10 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples10,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p11 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples11,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p12 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples12,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p13 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples13,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p14 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples14,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p15 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples15,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p16 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples16,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p17 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples17,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p18 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples18,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p19 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples19,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p20 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples20,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p21 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples21,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p22 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples22,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p23 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples23,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p24 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples24,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p25 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples25,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p26 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples26,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p27 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples27,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p28 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples28,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p29 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples29,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p30 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples30,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p31 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples31,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p32 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples32,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

p33 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples33,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p34 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples34,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)
p35 = gr.Interface(
    fn=speak,
    inputs=[gr.inputs.Textbox(label="Number 1"), gr.inputs.Textbox(label="Number 2"),
            gr.inputs.Audio(source="microphone", type="filepath", optional=True)],
    outputs="text",
    title=title,
    examples=examples35,
    theme="default",
    allow_screenshot=False,
    allow_flagging="never",
)

demo = gr.Blocks()

with demo:
    gr.TabbedInterface([p1, p2, p3, p4, p5, p6, p7,
                        p8, p9, p10, p11, p12, p13, p14,
                        p15, p16, p17, p18, p19, p20, p21,
                        p22, p23, p24, p25, p26, p27, p28,
                        p29, p30, p31, p32, p33, p34, p35],
                       ["Data 1", "Data 2", "Data 3", "Data 4", "Data 5", "Data 6", "Data 7",
                        "Data 8", "Data 9", "Data 10", "Data 11", "Data 12", "Data 13", "Data 14",
                        "Data 15", "Data 16", "Data 17", "Data 18", "Data 19", "Data 20", "Data 21",
                        "Data 22", "Data 23", "Data 24", "Data 25", "Data 26", "Data 27", "Data 28",
                        "Data 29", "Data 30", "Data 31", "Data 32", "Data 33", "Data 34", "Data 35"])

demo.launch(share=True)