futranbg commited on
Commit
0521f67
·
1 Parent(s): 6471f80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ def translation(source, target, text):
73
  input_prompt = input_prompt.replace("{query}", chunk.strip())
74
  stchunk = llm3(input_prompt)
75
  for eot in bloom_model_kwargs['stop']:
76
- stchunk = stchunk.replace(eot,"")+"\n"
77
- response += stchunk
78
  except Exception as e:
79
  print(f"ERROR: LLM show {e}")
80
  if response == "": response = text
 
73
  input_prompt = input_prompt.replace("{query}", chunk.strip())
74
  stchunk = llm3(input_prompt)
75
  for eot in bloom_model_kwargs['stop']:
76
+ stchunk = stchunk.replace(eot,"")
77
+ response += stchunk + "\n"
78
  except Exception as e:
79
  print(f"ERROR: LLM show {e}")
80
  if response == "": response = text