AngeT10 commited on
Commit
cfb5f6d
·
verified ·
1 Parent(s): 73875a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -37
app.py CHANGED
@@ -37,42 +37,18 @@ languages = [
37
  "ko", "hi"
38
  ]
39
 
40
- # Create a separate tab for model sharing
41
- def model_sharing_tab():
42
- model_input = gr.components.Textbox(label="Share your model/link")
43
- model_output = gr.components.Markdown(label="Shared Models")
44
-
45
- model_sharing_iface = gr.Interface(
46
- fn=lambda x: x, # dummy function to display the input
47
- inputs=model_input,
48
- outputs=model_output,
49
- title="Share Your Model",
50
- description="Share your model or link with the community!"
51
- )
52
-
53
- model_sharing_iface.launch()
54
-
55
- # Combine the two interfaces
56
- iface = gr.Interface(
57
- fn=clone,
58
- inputs=[
59
- gr.components.Text("", label="the text to be said"),
60
- gr.components.Text("", label="URL of the zip file with the dataset on hf.co (10 seconds is fine)"),
61
- gr.Dropdown(choices=languages, label="Language")
62
- ],
63
- outputs=gr.Audio(type='filepath'),
64
- title='Voice Clone',
65
- description="""
66
- by [Angetyde](https://youtube.com/@Angetyde?si=7nusP31nTumIkPTF) and [Tony Assi](https://www.tonyassi.com/ )
67
- use this colab with caution <3.
68
- """,
69
- theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", neutral_hue="slate"),
70
- layout=gr.Box.vertical,
71
- # Add the model sharing tab
72
- children=[
73
- iface,
74
- gr.Blocks(model_sharing_tab)
75
- ]
76
- )
77
 
78
  iface.launch(share=True)
 
37
  "ko", "hi"
38
  ]
39
 
40
+ iface = gr.Interface(fn=clone,
41
+ inputs=[
42
+ gr.components.Text("", label="the text to be said"),
43
+ gr.components.Text("", label="URL of the zip file with the dataset on hf.co (10 seconds is fine)"),
44
+ gr.Dropdown(choices=languages, label="Language")
45
+ ],
46
+ outputs=gr.Audio(type='filepath'),
47
+ title='Voice Clone',
48
+ description="""
49
+ by [Angetyde](https://youtube.com/@Angetyde?si=7nusP31nTumIkPTF) and [Tony Assi](https://www.tonyassi.com/ )
50
+ use this colab with caution <3.
51
+ """,
52
+ theme=gr.themes.Base(primary_hue="teal", secondary_hue="teal", neutral_hue="slate"))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  iface.launch(share=True)