Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,8 +54,8 @@ def generate_text(input_text, selected_model, history):
|
|
| 54 |
except json.JSONDecodeError:
|
| 55 |
generated_response = "Error: Unable to parse response."
|
| 56 |
|
| 57 |
-
# Append the new interaction to the history
|
| 58 |
-
history += f"
|
| 59 |
|
| 60 |
return generated_response, history
|
| 61 |
|
|
|
|
| 54 |
except json.JSONDecodeError:
|
| 55 |
generated_response = "Error: Unable to parse response."
|
| 56 |
|
| 57 |
+
# Append the new interaction to the history with model name
|
| 58 |
+
history += f"Model: {selected_model}\nUser: {input_text}\nResponse: {generated_response}\n\n"
|
| 59 |
|
| 60 |
return generated_response, history
|
| 61 |
|