Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,14 @@ from gigiachat_requests import get_access_token, get_completion_from_gigachat, g
|
|
| 8 |
from openai_requests import get_completion_from_openai, process_transcribation_with_assistant
|
| 9 |
|
| 10 |
if check_password():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
st.title('Audio Transcription App')
|
| 12 |
st.sidebar.title("Settings")
|
| 13 |
|
|
|
|
| 8 |
from openai_requests import get_completion_from_openai, process_transcribation_with_assistant
|
| 9 |
|
| 10 |
if check_password():
|
| 11 |
+
if torch.cuda.is_available():
|
| 12 |
+
print('GPU доступен')
|
| 13 |
+
else:
|
| 14 |
+
print('GPU не доступен')
|
| 15 |
+
|
| 16 |
+
print(f'Версия торча: {torch.__version__}')
|
| 17 |
+
print(f'Версия cuda: {torch.version.cuda}')
|
| 18 |
+
|
| 19 |
st.title('Audio Transcription App')
|
| 20 |
st.sidebar.title("Settings")
|
| 21 |
|