Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def translation(source, target, text):
|
|
43 |
input_prompt = starchat_template.replace("{source}", source)
|
44 |
input_prompt = input_prompt.replace("{target}", target)
|
45 |
input_prompt = input_prompt.replace("{query}", text)
|
46 |
-
response=llm2(input_prompt)
|
47 |
return response
|
48 |
|
49 |
gr.Interface(translation, inputs=["text","text","text"], outputs="text").launch()
|
|
|
43 |
input_prompt = starchat_template.replace("{source}", source)
|
44 |
input_prompt = input_prompt.replace("{target}", target)
|
45 |
input_prompt = input_prompt.replace("{query}", text)
|
46 |
+
response=llm2(input_prompt).replace("<|end|>","")
|
47 |
return response
|
48 |
|
49 |
gr.Interface(translation, inputs=["text","text","text"], outputs="text").launch()
|