Spaces:
Running
Running
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -288,7 +288,7 @@ monty._ph()
|
|
| 288 |
# %%write -a app.py
|
| 289 |
|
| 290 |
# client.moderations.create()
|
| 291 |
-
ai_client = openai.OpenAI(api_key=monty._decrypt_it(monty._ok))
|
| 292 |
# %%writefile -a app.py
|
| 293 |
|
| 294 |
#@add_method(HFace_Pluto)
|
|
@@ -320,7 +320,7 @@ ai_client = openai.OpenAI(api_key=monty._decrypt_it(monty._ok))
|
|
| 320 |
@add_method(HFace_Pluto)
|
| 321 |
# for OpenAI less version 0.27.7
|
| 322 |
def _fetch_moderate_engine(self):
|
| 323 |
-
self.ai_client = openai.OpenAI(api_key=self._decrypt_it(self.
|
| 324 |
self.text_model = "text-moderation-latest"
|
| 325 |
return
|
| 326 |
#
|
|
|
|
| 288 |
# %%write -a app.py
|
| 289 |
|
| 290 |
# client.moderations.create()
|
| 291 |
+
# ai_client = openai.OpenAI(api_key=monty._decrypt_it(monty._ok))
|
| 292 |
# %%writefile -a app.py
|
| 293 |
|
| 294 |
#@add_method(HFace_Pluto)
|
|
|
|
| 320 |
@add_method(HFace_Pluto)
|
| 321 |
# for OpenAI less version 0.27.7
|
| 322 |
def _fetch_moderate_engine(self):
|
| 323 |
+
self.ai_client = openai.OpenAI(api_key=self._decrypt_it(self._ok))
|
| 324 |
self.text_model = "text-moderation-latest"
|
| 325 |
return
|
| 326 |
#
|