Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os,sys
|
2 |
from openai import OpenAI
|
3 |
import gradio as gr
|
|
|
4 |
|
5 |
# install required packages
|
6 |
os.system('pip install -q plotly')
|
@@ -9,7 +10,6 @@ os.system('pip install dgl==1.0.2+cu116 -f https://data.dgl.ai/wheels/cu116/repo
|
|
9 |
os.environ["DGLBACKEND"] = "pytorch"
|
10 |
print('Modules installed')
|
11 |
|
12 |
-
# 여기에 args 초기화 코드 추가 --------------------------------
|
13 |
# 기본 args 설정
|
14 |
if not os.path.exists('./tmp'):
|
15 |
os.makedirs('./tmp')
|
@@ -36,7 +36,6 @@ if not os.path.exists('./tmp/args.json'):
|
|
36 |
with open('./tmp/args.json', 'r') as f:
|
37 |
args = json.load(f)
|
38 |
|
39 |
-
|
40 |
# 필수 라이브러리 임포트
|
41 |
from datasets import load_dataset
|
42 |
import plotly.graph_objects as go
|
|
|
1 |
import os,sys
|
2 |
from openai import OpenAI
|
3 |
import gradio as gr
|
4 |
+
import json # json 모듈 추가
|
5 |
|
6 |
# install required packages
|
7 |
os.system('pip install -q plotly')
|
|
|
10 |
os.environ["DGLBACKEND"] = "pytorch"
|
11 |
print('Modules installed')
|
12 |
|
|
|
13 |
# 기본 args 설정
|
14 |
if not os.path.exists('./tmp'):
|
15 |
os.makedirs('./tmp')
|
|
|
36 |
with open('./tmp/args.json', 'r') as f:
|
37 |
args = json.load(f)
|
38 |
|
|
|
39 |
# 필수 라이브러리 임포트
|
40 |
from datasets import load_dataset
|
41 |
import plotly.graph_objects as go
|