Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def generate_response(input_text, temperature):
|
|
| 31 |
|
| 32 |
# Decode the generated response
|
| 33 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 34 |
-
return response
|
| 35 |
|
| 36 |
# Create the Gradio interface
|
| 37 |
interface = gr.Interface(
|
|
|
|
| 31 |
|
| 32 |
# Decode the generated response
|
| 33 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 34 |
+
return response.replace(input_text, "").strip()
|
| 35 |
|
| 36 |
# Create the Gradio interface
|
| 37 |
interface = gr.Interface(
|