Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,13 +7,11 @@ import asyncio
|
|
| 7 |
import aiofiles
|
| 8 |
import os
|
| 9 |
import time
|
| 10 |
-
import mimetypes
|
| 11 |
import torch
|
| 12 |
import re
|
| 13 |
from typing import List, Dict, Optional
|
| 14 |
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
|
| 15 |
import PyPDF2
|
| 16 |
-
import io
|
| 17 |
import traceback
|
| 18 |
|
| 19 |
#from git import Repo
|
|
@@ -318,9 +316,9 @@ Requirements:
|
|
| 318 |
- DO NOT copy the example below , only use it as conversation reference
|
| 319 |
- The podcast should be professional, in-depth, lively, witty and engaging, and hook the listener from the start.
|
| 320 |
- The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points, identify key definitions, and highlight intriguing facts that would be suitable for discussion in a podcast.
|
| 321 |
-
- The two-person conversation must be in following format, always leading with the speaker
|
| 322 |
Speaker 1: Hello to our podcast
|
| 323 |
-
Speaker 2:
|
| 324 |
Speaker 1: ...
|
| 325 |
Speaker 2: ...
|
| 326 |
- {language_instruction}
|
|
|
|
| 7 |
import aiofiles
|
| 8 |
import os
|
| 9 |
import time
|
|
|
|
| 10 |
import torch
|
| 11 |
import re
|
| 12 |
from typing import List, Dict, Optional
|
| 13 |
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
|
| 14 |
import PyPDF2
|
|
|
|
| 15 |
import traceback
|
| 16 |
|
| 17 |
#from git import Repo
|
|
|
|
| 316 |
- DO NOT copy the example below , only use it as conversation reference
|
| 317 |
- The podcast should be professional, in-depth, lively, witty and engaging, and hook the listener from the start.
|
| 318 |
- The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points, identify key definitions, and highlight intriguing facts that would be suitable for discussion in a podcast.
|
| 319 |
+
- The two-person conversation must be in following format, always leading with the two speaker names: Speaker 1 and Speaker 2
|
| 320 |
Speaker 1: Hello to our podcast
|
| 321 |
+
Speaker 2: Thanks to be here
|
| 322 |
Speaker 1: ...
|
| 323 |
Speaker 2: ...
|
| 324 |
- {language_instruction}
|