Spaces:
Runtime error
Runtime error
Added PyTorch Test & Updated Requirements File
Browse files- main.py +2 -0
- pytorch_test.py +4 -0
- requirements.txt +2 -1
main.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import uvicorn
|
2 |
from fastapi import FastAPI, Request
|
3 |
|
|
|
1 |
+
import pytorch_test
|
2 |
+
|
3 |
import uvicorn
|
4 |
from fastapi import FastAPI, Request
|
5 |
|
pytorch_test.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import torch
|
2 |
+
|
3 |
+
print(f"CUDA available: {torch.cuda.is_available()}")
|
4 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
requirements.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
fastapi
|
2 |
faster-whisper
|
3 |
langchain
|
|
|
4 |
openai
|
5 |
pandas
|
6 |
pytube
|
@@ -12,4 +13,4 @@ wordcloud
|
|
12 |
youtube-transcript-api
|
13 |
git+https://github.com/suno-ai/bark.git
|
14 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
15 |
-
torch
|
|
|
1 |
fastapi
|
2 |
faster-whisper
|
3 |
langchain
|
4 |
+
nltk
|
5 |
openai
|
6 |
pandas
|
7 |
pytube
|
|
|
13 |
youtube-transcript-api
|
14 |
git+https://github.com/suno-ai/bark.git
|
15 |
--extra-index-url https://download.pytorch.org/whl/cu113
|
16 |
+
torch
|