camillelacan1 commited on
Commit
2293546
·
1 Parent(s): 4c88f7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def convert_code(code, language_in, language_out,):
13
  Convert the given code to the specified language using GPT-3.
14
  """
15
  # Set the prompt to use as input to the model
16
- prompt = f"Convert {language_in} code to {language_out} code:\n{code}"
17
 
18
  # Call the GPT-3 API to generate text
19
  response = openai.Completion.create(
 
13
  Convert the given code to the specified language using GPT-3.
14
  """
15
  # Set the prompt to use as input to the model
16
+ prompt = f""""Convert {language_in} code to {language_out} code:\n{code}"""
17
 
18
  # Call the GPT-3 API to generate text
19
  response = openai.Completion.create(