Spaces:
Runtime error
Runtime error
Commit
·
a6aff1f
1
Parent(s):
388e3c1
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ agent = OpenAiAgent(model="text-davinci-003", api_key=os.environ.get("openai_key
|
|
8 |
|
9 |
|
10 |
def predict(text):
|
11 |
-
agent.run("Is the following `text` (in French) positive or negative?", text=text)
|
12 |
-
|
13 |
|
14 |
description = """
|
15 |
"""
|
|
|
8 |
|
9 |
|
10 |
def predict(text):
|
11 |
+
return agent.run("Is the following `text` (in French) positive or negative?", text=text)
|
12 |
+
|
13 |
|
14 |
description = """
|
15 |
"""
|