umertayyeb commited on
Commit
a5855f7
·
verified ·
1 Parent(s): 0cbe68c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -1,7 +1,13 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hi there " + name + "!!"
5
-
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- demo.launch()
 
 
 
 
 
 
 
1
+ from gradio_client import Client, handle_file
2
 
3
+ client = Client("ResembleAI/Chatterbox")
4
+ result = client.predict(
5
+ text_input="Now let's make my mum's favourite. So three mars bars into the pan. Then we add the tuna and just stir for a bit, just let the chocolate and fish infuse. A sprinkle of olive oil and some tomato ketchup. Now smell that. Oh boy this is going to be incredible.",
6
+ audio_prompt_path_input=handle_file('https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav'),
7
+ exaggeration_input=0.5,
8
+ temperature_input=0.8,
9
+ seed_num_input=0,
10
+ cfgw_input=0.5,
11
+ api_name="/generate_tts_audio"
12
+ )
13
+ print(result)