Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def predict(question_choice, audio):
|
|
22 |
message = transcript["text"] # This is the transcribed message from the audio input
|
23 |
|
24 |
# Generate the system message based on the chosen question
|
25 |
-
|
26 |
|
27 |
# Reference to the picture description from StTeresaData.py
|
28 |
picture_description = StTeresaData.description
|
@@ -56,7 +56,7 @@ def predict(question_choice, audio):
|
|
56 |
model='gpt-3.5-turbo',
|
57 |
messages=conversation,
|
58 |
temperature=0.6,
|
59 |
-
max_tokens=550, # Limiting the response to
|
60 |
stream=True
|
61 |
)
|
62 |
|
|
|
22 |
message = transcript["text"] # This is the transcribed message from the audio input
|
23 |
|
24 |
# Generate the system message based on the chosen question
|
25 |
+
strategy, explanation = StTeresaData.strategy_text["PEEL"]
|
26 |
|
27 |
# Reference to the picture description from StTeresaData.py
|
28 |
picture_description = StTeresaData.description
|
|
|
56 |
model='gpt-3.5-turbo',
|
57 |
messages=conversation,
|
58 |
temperature=0.6,
|
59 |
+
max_tokens=550, # Limiting the response to 550 tokens
|
60 |
stream=True
|
61 |
)
|
62 |
|