Spaces:
Build error
Build error
Update app.py
Browse files
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-
|
| 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
|
| 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
|