DrMarcus24 commited on
Commit
85a5a4e
·
1 Parent(s): 546b547

shorten prompt

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -30,8 +30,7 @@ CLIENT = InferenceClient(
30
  def code_converter(code: str, from_lang: str, to_lang: str) -> str:
31
  system_input = """You are a code-only generator. Do not introduce the code. Do not explain the code.
32
  Do not include markdown code block backticks. Output only raw, valid code."""
33
- user_input = f"""Please convert this {code} from {from_lang} to {to_lang}. Just include
34
- the code in the response."""
35
  messages = [
36
  {"role": "system", "content": system_input},
37
  {"role": "user", "content": user_input},
 
30
  def code_converter(code: str, from_lang: str, to_lang: str) -> str:
31
  system_input = """You are a code-only generator. Do not introduce the code. Do not explain the code.
32
  Do not include markdown code block backticks. Output only raw, valid code."""
33
+ user_input = f"""Please convert this {code} from {from_lang} to {to_lang}."""
 
34
  messages = [
35
  {"role": "system", "content": system_input},
36
  {"role": "user", "content": user_input},