ravinder2024 commited on
Commit
563e609
·
verified ·
1 Parent(s): cda2ad7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
- from transformers import pipeline
3
- #pipe = pipeline("image-classification")
4
- #gr.Interface.from_pipeline(pipe).launch()
5
- demo = gr.Interface(image_generator, gr.Textbox(), gr.Image())
6
- demo.queue(max_size=20)
 
 
 
 
 
7
  demo.launch()
 
1
  import gradio as gr
2
+
3
+ def echo(message, history):
4
+ return message["text"]
5
+
6
+ demo = gr.ChatInterface(
7
+ fn=echo,
8
+ examples=[{"text": "hello"}, {"text": "hola"}, {"text": "merhaba"}],
9
+ title="Echo Bot",
10
+ multimodal=True,
11
+ )
12
  demo.launch()