Spaces:
Runtime error
Runtime error
Commit
·
7c04ec9
1
Parent(s):
b285088
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,10 +43,18 @@ transcribe_interface = gr.Interface(
|
|
| 43 |
inputs=['text', 'text', gr.components.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k'])],
|
| 44 |
outputs=['text'],
|
| 45 |
title="Summarize",
|
| 46 |
-
description="Let's Summarize a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
)
|
| 48 |
|
| 49 |
-
chat_interface = gr.ChatInterface(fn=response, title="Chat with
|
| 50 |
demo = gr.TabbedInterface([transcribe_interface, chat_interface], ["Summarize", "Chat"])
|
| 51 |
demo.queue()
|
| 52 |
demo.launch()
|
|
|
|
| 43 |
inputs=['text', 'text', gr.components.Radio(['gpt-3.5-turbo', 'gpt-3.5-turbo-16k'])],
|
| 44 |
outputs=['text'],
|
| 45 |
title="Summarize",
|
| 46 |
+
description="""Let's Summarize a YouTube Video
|
| 47 |
+
1. Paste the YouTube Video Link.
|
| 48 |
+
2. Provide the OpenAI API Key (For chatting with GPT Models).
|
| 49 |
+
3. Choose the Model, GPT-3.5-turbo for smaller summaries, GPT-3.5-turbo-16k for larger context
|
| 50 |
+
4. Go to the Chat interface
|
| 51 |
+
5. Type Summarize
|
| 52 |
+
6. Done!
|
| 53 |
+
|
| 54 |
+
Clear everything with the Clear button."""
|
| 55 |
)
|
| 56 |
|
| 57 |
+
chat_interface = gr.ChatInterface(fn=response, title="Chat with GPT About the Topic", description="Chat with the AI about the video you just summarized.")
|
| 58 |
demo = gr.TabbedInterface([transcribe_interface, chat_interface], ["Summarize", "Chat"])
|
| 59 |
demo.queue()
|
| 60 |
demo.launch()
|