bubuuunel commited on
Commit
81bd213
·
verified ·
1 Parent(s): f947724

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -107,15 +107,16 @@ def predict(user_input,company):
107
  ]
108
 
109
  # Create messages
110
- try:
111
- response = client.chat.completions.create(
112
- model=model_name,
113
- messages=prompt,
114
- temperature=0
115
- )
116
-
117
- prediction = response.choices[0].message.content.strip()
118
- except Exception as e:
 
119
  prediction = f'Sorry, I encountered the following error: \n {e}'
120
 
121
 
 
107
  ]
108
 
109
  # Create messages
110
+ try:
111
+ response = client.chat.completions.create(
112
+ model=model_name,
113
+ messages=prompt,
114
+ temperature=0
115
+ )
116
+
117
+ prediction = response.choices[0].message.content.strip()
118
+ except Exception as e:
119
+
120
  prediction = f'Sorry, I encountered the following error: \n {e}'
121
 
122