azazel1805 commited on
Commit
fde9ffa
·
verified ·
1 Parent(s): 84ce09d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,7 +21,7 @@ def chat_with_bot(user_input, history=[]):
21
  try:
22
  response = client.text_generation(
23
  prompt=user_input,
24
- model="microsoft/DialoGPT-medium"
25
  )
26
  history.append([user_input, response])
27
  chat_output = "\n".join([f"You: {h[0]}\nBot: {h[1]}" for h in history])
@@ -54,7 +54,7 @@ interface = gr.Interface(
54
  inputs=["text", "state"],
55
  outputs=["text", "state"],
56
  title="My DialoGPT Chatbot",
57
- description=f"Powered by Microsoft DialoGPT Medium | API Test: {test_api()}"
58
  )
59
 
60
  # Launch the app
 
21
  try:
22
  response = client.text_generation(
23
  prompt=user_input,
24
+ model="microsoft/DialoGPT-large"
25
  )
26
  history.append([user_input, response])
27
  chat_output = "\n".join([f"You: {h[0]}\nBot: {h[1]}" for h in history])
 
54
  inputs=["text", "state"],
55
  outputs=["text", "state"],
56
  title="My DialoGPT Chatbot",
57
+ description=f"Powered by Microsoft DialoGPT Large | API Test: {test_api()}"
58
  )
59
 
60
  # Launch the app