ravi6k commited on
Commit
d6b323a
·
verified ·
1 Parent(s): 816ee02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,7 +129,7 @@ def predict(user_input,company):
129
  temperature=0
130
  )
131
  print("responseRavi",response)
132
- #prediction = response.choices[0].message.content.strip()
133
  except Exception as e:
134
  prediction = f'Sorry, I encountered the following error: \n {e}'
135
 
@@ -148,7 +148,7 @@ def predict(user_input,company):
148
  ))
149
  f.write("\n")
150
 
151
- return response #prediction
152
 
153
  # Set-up the Gradio UI
154
  # Add text box and radio button to the interface
 
129
  temperature=0
130
  )
131
  print("responseRavi",response)
132
+ prediction = response#.choices[0].message.content.strip()
133
  except Exception as e:
134
  prediction = f'Sorry, I encountered the following error: \n {e}'
135
 
 
148
  ))
149
  f.write("\n")
150
 
151
+ return prediction
152
 
153
  # Set-up the Gradio UI
154
  # Add text box and radio button to the interface