Redmind commited on
Commit
556e5eb
·
verified ·
1 Parent(s): 64a2db8

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +0 -6
chat.py CHANGED
@@ -312,12 +312,6 @@ def unstructured_text_to_df(text):
312
  # Your OpenAI API key
313
  openai.api_key = os.getenv("OPENAI_API_KEY", "")
314
 
315
- # Unstructured text
316
- text = """The top 3 predicted materials in 2025 are:
317
- 1. 9762_NUT_CHNNL with a total quantity of 753
318
- 2. 8268_KIT_TOOL with a total quantity of 738
319
- 3. 5960_CABLE with a total quantity of 729"""
320
-
321
  # OpenAI prompt to structure the data
322
  prompt = f"""
323
  Extract the materials and their quantities from the following text and format them as a structured JSON:
 
312
  # Your OpenAI API key
313
  openai.api_key = os.getenv("OPENAI_API_KEY", "")
314
 
 
 
 
 
 
 
315
  # OpenAI prompt to structure the data
316
  prompt = f"""
317
  Extract the materials and their quantities from the following text and format them as a structured JSON: