Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -163,7 +163,7 @@ prompt_template = "You are a translation engine that can only translate text and
|
|
163 |
|
164 |
def submit_message(detectFrom, detectTo, user_token, prompt):
|
165 |
if user_token != "":
|
166 |
-
openai.api_key =
|
167 |
|
168 |
if not prompt:
|
169 |
return gr.update(value="")
|
|
|
163 |
|
164 |
def submit_message(detectFrom, detectTo, user_token, prompt):
|
165 |
if user_token != "":
|
166 |
+
openai.api_key = user_token
|
167 |
|
168 |
if not prompt:
|
169 |
return gr.update(value="")
|