zhengchong
commited on
Commit
•
fe2cfb5
1
Parent(s):
3862df7
chore: Set CUDA environment variables in app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import argparse
|
2 |
import os
|
|
|
|
|
3 |
from datetime import datetime
|
4 |
|
5 |
import gradio as gr
|
|
|
1 |
import argparse
|
2 |
import os
|
3 |
+
os.environ['CUDA_HOME'] = '/usr/local/cuda'
|
4 |
+
os.environ['PATH'] = os.environ['PATH'] + ':/usr/local/cuda/bin'
|
5 |
from datetime import datetime
|
6 |
|
7 |
import gradio as gr
|