Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,5 @@ def chat_with_model(prompt):
|
|
8 |
response = chat(prompt, max_length=50)
|
9 |
return response[0]['generated_text']
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
fn=chat_with_model,
|
14 |
-
inputs=gr.inputs.Textbox(lines=2, placeholder="Type your message here..."),
|
15 |
-
outputs="text",
|
16 |
-
title="Chat with LLM",
|
17 |
-
description="Type a message and chat with a language model."
|
18 |
-
)
|
19 |
-
|
20 |
-
if __name__ == "__main__":
|
21 |
-
iface.launch()
|
|
|
8 |
response = chat(prompt, max_length=50)
|
9 |
return response[0]['generated_text']
|
10 |
|
11 |
+
demo = gr.ChatInterface(fn=chat_with_model, title="Echo Bot")
|
12 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|