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