cmagganas commited on
Commit
542d9a7
1 Parent(s): 428777e

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py DELETED
@@ -1,29 +0,0 @@
1
- # this app is streamlit app for the current project hosted on huggingface spaces
2
-
3
- import streamlit as st
4
- from app.openai_chat_completion import OpenAIChatCompletions
5
-
6
- st.title("Kaleidoscope Data - Data Cleaning LLM App")
7
-
8
- st.write("This app is a demo of the LLM model for data cleaning. It is a work in progress and is not yet ready for production use.")
9
-
10
- # text box or csv upload
11
- text_input = st.text_input("Enter text", "Enter text here")
12
- # csv_file = st.file_uploader("Upload CSV", type=['csv'])
13
-
14
- # button to run data cleaning API on text via c class in openai_chat_completion.py
15
- if st.button("Run Data Cleaning API"):
16
-
17
- # if text_input is not empty, run data cleaning API on text_input
18
-
19
- model = "gpt-4" # "gpt-3.5-turbo"
20
- sys_mes = "prompts/gpt4-system-message.txt"
21
-
22
- # instantiate OpenAIChatCompletions class
23
- # get response from openai_chat_completion method
24
- chat = OpenAIChatCompletions(model=model, system_message=sys_mes)
25
- response = chat.openai_chat_completion(text_input, n_shot=5)
26
-
27
- # display response
28
- st.write(response)
29
-