Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,"")
|
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
|