tommy24 commited on
Commit
e555041
Β·
1 Parent(s): 1e2a8ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -42,12 +42,10 @@ def greet(prompt):
42
  if response != 500:
43
  response = response['choices'][0]['text']
44
  response = response.strip()
45
- result = base64.b64encode(response.encode())
46
- result_strip = str(result)
47
- result_strip2 = result_strip.replace("b", "")
48
- result_strip3 = result_strip2.replace("'", "")
49
  # response = "\n",response,"\n"
50
- return result_strip3
51
  else:
52
  return "Model is Down. Our team is working on it πŸ˜ƒ"
53
 
 
42
  if response != 500:
43
  response = response['choices'][0]['text']
44
  response = response.strip()
45
+ result = base64.b64encode(response.encode('utf-8'))
46
+ result2 = result.decode('utf-8')
 
 
47
  # response = "\n",response,"\n"
48
+ return result2
49
  else:
50
  return "Model is Down. Our team is working on it πŸ˜ƒ"
51