Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,17 +61,20 @@ def inference(audio, state=""):
|
|
61 |
PROMPT = """The following is an incomplete transcript of a brief conversation.
|
62 |
Predict the next few words int he transcript to complete the sentence.
|
63 |
A few examples of transcripts and predictions are provided below:
|
|
|
|
|
64 |
Transcript: Tomorrow night we're going out to
|
65 |
-
Prediction: The Movies, A Restaurant, A Baseball Game, The Theater, A Party for a friend
|
66 |
Transcript: I would like to order a cheeseburger with a side of
|
67 |
Prediction: Frnech fries, Milkshake, Apple slices, Side salad, Extra katsup
|
68 |
Transcript: My friend Savanah is
|
69 |
Prediction: An elecrical engineer, A marine biologist, A classical musician
|
70 |
Transcript: I need to buy a birthday
|
71 |
Prediction: Present, Gift, Cake, Card
|
72 |
-
|
|
|
73 |
"""
|
74 |
-
text = PROMPT + result.text
|
75 |
|
76 |
openai.api_key = os.environ["Openai_APIkey"]
|
77 |
|
|
|
61 |
PROMPT = """The following is an incomplete transcript of a brief conversation.
|
62 |
Predict the next few words int he transcript to complete the sentence.
|
63 |
A few examples of transcripts and predictions are provided below:
|
64 |
+
|
65 |
+
|
66 |
Transcript: Tomorrow night we're going out to
|
67 |
+
Prediction: The Movies, A Restaurant, A Baseball Game, The Theater, A Party for a friend
|
68 |
Transcript: I would like to order a cheeseburger with a side of
|
69 |
Prediction: Frnech fries, Milkshake, Apple slices, Side salad, Extra katsup
|
70 |
Transcript: My friend Savanah is
|
71 |
Prediction: An elecrical engineer, A marine biologist, A classical musician
|
72 |
Transcript: I need to buy a birthday
|
73 |
Prediction: Present, Gift, Cake, Card
|
74 |
+
|
75 |
+
Transcript:
|
76 |
"""
|
77 |
+
text = PROMPT + result.text + "Prediction: "
|
78 |
|
79 |
openai.api_key = os.environ["Openai_APIkey"]
|
80 |
|