Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app/dataclean_hf.py +2 -2
app/dataclean_hf.py
CHANGED
@@ -6,7 +6,7 @@ import numpy as np
|
|
6 |
import streamlit as st
|
7 |
|
8 |
from sqlalchemy import create_engine
|
9 |
-
from yallmf.utils import run_with_timeout
|
10 |
import openai
|
11 |
|
12 |
from tqdm import tqdm
|
@@ -62,7 +62,7 @@ def clean_data(
|
|
62 |
messages = [{'role':'system','content':'You are a helpful assistant. Return a properly-formatted CSV with the correct number of columns.'},
|
63 |
{'role':'user', 'content':p1+p2+'\n\nOutput CSV with header row:\n\n'}
|
64 |
]
|
65 |
-
comp =
|
66 |
model='gpt-4',
|
67 |
messages=messages,
|
68 |
max_tokens=2000,
|
|
|
6 |
import streamlit as st
|
7 |
|
8 |
from sqlalchemy import create_engine
|
9 |
+
# from yallmf.utils import run_with_timeout
|
10 |
import openai
|
11 |
|
12 |
from tqdm import tqdm
|
|
|
62 |
messages = [{'role':'system','content':'You are a helpful assistant. Return a properly-formatted CSV with the correct number of columns.'},
|
63 |
{'role':'user', 'content':p1+p2+'\n\nOutput CSV with header row:\n\n'}
|
64 |
]
|
65 |
+
comp = openai.ChatCompletion.create(
|
66 |
model='gpt-4',
|
67 |
messages=messages,
|
68 |
max_tokens=2000,
|