braunale commited on
Commit
36b0a4e
1 Parent(s): 7b216ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -11
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
- # Create the Gradio interface
12
- iface = gr.Interface(
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()