Spaces:
Sleeping
Sleeping
WilliamGazeley
commited on
Commit
·
a0ab831
1
Parent(s):
379c3fe
Strip new lines
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def generate_response(input_text):
|
|
47 |
try:
|
48 |
future_base = executor.submit(generate_base_response, input_text)
|
49 |
future_irai = executor.submit(generate_irai_response, input_text)
|
50 |
-
base_resp = future_base.result().replace(input_text, "", 1)
|
51 |
irai_resp = future_irai.result()
|
52 |
except Exception as e:
|
53 |
st.error(f"An error occurred: {e}")
|
|
|
47 |
try:
|
48 |
future_base = executor.submit(generate_base_response, input_text)
|
49 |
future_irai = executor.submit(generate_irai_response, input_text)
|
50 |
+
base_resp = future_base.result().replace(input_text, "", 1).strip()
|
51 |
irai_resp = future_irai.result()
|
52 |
except Exception as e:
|
53 |
st.error(f"An error occurred: {e}")
|