Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,6 @@ def generate_response(transcription, api_key):
|
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|
48 |
],
|
49 |
-
max_tokens=150,
|
50 |
-
temperature=0.7
|
51 |
)
|
52 |
return completion.choices[0].message.content
|
53 |
except Exception as e:
|
|
|
46 |
{"role": "system", "content": "You are a helpful assistant."},
|
47 |
{"role": "user", "content": transcription}
|
48 |
],
|
|
|
|
|
49 |
)
|
50 |
return completion.choices[0].message.content
|
51 |
except Exception as e:
|