cmagganas commited on
Commit
d3c59b8
1 Parent(s): 07fd8f8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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 = run_with_timeout(openai.ChatCompletion.create,
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,