veeps commited on
Commit
328191d
1 Parent(s): bcd81d0

trying to open up to not just florida

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ client = OpenAI(
7
  api_key=os.environ["OPENAI_API_KEY"],
8
  )
9
 
10
- def chat_with_gpt(prompt, location="Tampa, Florida", year="2024"):
11
  response = client.chat.completions.create(
12
  model="gpt-4o",
13
  messages = [
@@ -25,7 +25,7 @@ def chat_with_gpt(prompt, location="Tampa, Florida", year="2024"):
25
  "content": [
26
  {
27
  "type": "text",
28
- "text": f"Can you give me ballot info for {location} in {year}?"
29
  }
30
  ]
31
  }
 
7
  api_key=os.environ["OPENAI_API_KEY"],
8
  )
9
 
10
+ def chat_with_gpt(prompt):
11
  response = client.chat.completions.create(
12
  model="gpt-4o",
13
  messages = [
 
25
  "content": [
26
  {
27
  "type": "text",
28
+ "text": f"Can you give me ballot info for location in year?"
29
  }
30
  ]
31
  }