Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def inference(audio, state=""):
|
|
| 59 |
print("result pre gp model from whisper: ", result, ".text ", result.text, "and the data type: ", type(result.text))
|
| 60 |
|
| 61 |
PROMPT = """The following is an incomplete transcript of a brief conversation.
|
| 62 |
-
Predict the next few words
|
| 63 |
A few examples of transcripts and predictions are provided below:
|
| 64 |
|
| 65 |
|
|
@@ -72,7 +72,7 @@ def inference(audio, state=""):
|
|
| 72 |
Transcript: I need to buy a birthday
|
| 73 |
Prediction: Present, Gift, Cake, Card
|
| 74 |
|
| 75 |
-
|
| 76 |
"""
|
| 77 |
text = PROMPT + result.text + "Prediction: "
|
| 78 |
|
|
|
|
| 59 |
print("result pre gp model from whisper: ", result, ".text ", result.text, "and the data type: ", type(result.text))
|
| 60 |
|
| 61 |
PROMPT = """The following is an incomplete transcript of a brief conversation.
|
| 62 |
+
Predict the next few words in the transcript to complete the sentence.
|
| 63 |
A few examples of transcripts and predictions are provided below:
|
| 64 |
|
| 65 |
|
|
|
|
| 72 |
Transcript: I need to buy a birthday
|
| 73 |
Prediction: Present, Gift, Cake, Card
|
| 74 |
|
| 75 |
+
Incomplete transcript:
|
| 76 |
"""
|
| 77 |
text = PROMPT + result.text + "Prediction: "
|
| 78 |
|