Spaces:
Sleeping
Sleeping
leadingbridge
commited on
Commit
•
d88c117
1
Parent(s):
75dfd0c
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ def chatgpt_clone(input, history):
|
|
53 |
def translate_to_chinese(text_to_translate):
|
54 |
response = openai.Completion.create(
|
55 |
model="text-davinci-003",
|
56 |
-
prompt=f"Translate this short sentence into Chinese:\n\n{text_to_translate}\n\n1.",
|
57 |
temperature=0.3,
|
58 |
max_tokens=1024,
|
59 |
top_p=1.0,
|
|
|
53 |
def translate_to_chinese(text_to_translate):
|
54 |
response = openai.Completion.create(
|
55 |
model="text-davinci-003",
|
56 |
+
prompt=f"Translate this short English sentence into Chinese:\n\n{text_to_translate}\n\n1.",
|
57 |
temperature=0.3,
|
58 |
max_tokens=1024,
|
59 |
top_p=1.0,
|