Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,17 +60,17 @@ def inference(audio, state=""):
|
|
60 |
|
61 |
PROMPT = """The following is an incomplete transcript of a brief conversation. Predict the next most probable words in the transcript to complete the sentence.
|
62 |
Some examples:
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
text = PROMPT + result.text + "
|
74 |
|
75 |
openai.api_key = os.environ["Openai_APIkey"]
|
76 |
|
|
|
60 |
|
61 |
PROMPT = """The following is an incomplete transcript of a brief conversation. Predict the next most probable words in the transcript to complete the sentence.
|
62 |
Some examples:
|
63 |
+
Transcript1: Tomorrow night we're going out to
|
64 |
+
Predictions1: The Movies, A Restaurant, A Baseball Game, The Theater, A Party for a friend
|
65 |
+
Transcript2: I would like to order a cheeseburger with a side of
|
66 |
+
Predictions2: French fries, Milkshake, Apple slices, Side salad, Extra catsup
|
67 |
+
Transcript3: My friend Savanah is
|
68 |
+
Predictions3: An electrical engineer, A marine biologist, A classical musician
|
69 |
+
Transcript4: I need to buy a birthday
|
70 |
+
Predictions4: Present, Gift, Cake, Card
|
71 |
+
|
72 |
+
Transcript5: """
|
73 |
+
text = PROMPT + result.text + "Prediction5: "
|
74 |
|
75 |
openai.api_key = os.environ["Openai_APIkey"]
|
76 |
|