Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ from threading import Thread
|
|
20 |
|
21 |
from gradio_client import Client
|
22 |
|
23 |
-
client = Client("eswardivi/AIO_Chat")
|
24 |
quantization_config = BitsAndBytesConfig(
|
25 |
load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16
|
26 |
)
|
@@ -75,7 +75,7 @@ def synthesize(article_url,progress_audio=gr.Progress()):
|
|
75 |
chat.append(
|
76 |
{
|
77 |
"role": "user",
|
78 |
-
"content": text+"""\n Convert the text as
|
79 |
{
|
80 |
"conversation": [
|
81 |
{"speaker": "", "text": ""},
|
@@ -153,6 +153,11 @@ with gr.Blocks(theme='gstaff/sketch') as demo:
|
|
153 |
- **Step 2:** Click on "Podcastify" to generate the podcast.
|
154 |
- **Step 3:** Listen to the podcast or view the conversation.
|
155 |
""")
|
|
|
|
|
|
|
|
|
|
|
156 |
with gr.Group():
|
157 |
text = gr.Textbox(label="Article Link")
|
158 |
btn = gr.Button("Podcastify", variant="primary")
|
|
|
20 |
|
21 |
from gradio_client import Client
|
22 |
|
23 |
+
# client = Client("eswardivi/AIO_Chat")
|
24 |
quantization_config = BitsAndBytesConfig(
|
25 |
load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16
|
26 |
)
|
|
|
75 |
chat.append(
|
76 |
{
|
77 |
"role": "user",
|
78 |
+
"content": text+"""\n Convert the text as Short Conversation between two people as Podcast.\nfollowing this template:
|
79 |
{
|
80 |
"conversation": [
|
81 |
{"speaker": "", "text": ""},
|
|
|
153 |
- **Step 2:** Click on "Podcastify" to generate the podcast.
|
154 |
- **Step 3:** Listen to the podcast or view the conversation.
|
155 |
""")
|
156 |
+
gr.Markdown("""
|
157 |
+
**For a faster instance, check out:**
|
158 |
+
- [NarrateIt](https://narrateit.streamlit.app/) for faster processing.
|
159 |
+
- View the code at [GitHub - NarrateIt](https://github.com/EswarDivi/NarrateIt).
|
160 |
+
""")
|
161 |
with gr.Group():
|
162 |
text = gr.Textbox(label="Article Link")
|
163 |
btn = gr.Button("Podcastify", variant="primary")
|