Update app.py
Browse files
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 |
-
|
47 |
-
result_strip2 = result_strip.replace("b", "")
|
48 |
-
result_strip3 = result_strip2.replace("'", "")
|
49 |
# response = "\n",response,"\n"
|
50 |
-
return
|
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 |
|