mskov commited on
Commit
56f463d
·
1 Parent(s): 5628184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
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
- A few examples are provided below:
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