Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import os
|
|
6 |
import subprocess
|
7 |
import sys
|
8 |
import time
|
9 |
-
|
10 |
|
11 |
import gradio as gr
|
12 |
import requests
|
@@ -20,6 +20,11 @@ from llava.utils import (
|
|
20 |
violates_moderation,
|
21 |
)
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
logger = build_logger("gradio_web_server", "gradio_web_server.log")
|
24 |
|
25 |
headers = {"User-Agent": "LLaVA Client"}
|
|
|
6 |
import subprocess
|
7 |
import sys
|
8 |
import time
|
9 |
+
import torch
|
10 |
|
11 |
import gradio as gr
|
12 |
import requests
|
|
|
20 |
violates_moderation,
|
21 |
)
|
22 |
|
23 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
24 |
+
# True
|
25 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
26 |
+
# Tesla T4
|
27 |
+
|
28 |
logger = build_logger("gradio_web_server", "gradio_web_server.log")
|
29 |
|
30 |
headers = {"User-Agent": "LLaVA Client"}
|