nikunjcepatel commited on
Commit
2a03702
·
verified ·
1 Parent(s): 1ce6b5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"User: {input_text}\nResponse: {generated_response}\n"
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