jasminemomoko commited on
Commit
5169cb4
·
verified ·
1 Parent(s): b1c6c4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -4
app.py CHANGED
@@ -53,12 +53,25 @@
53
  #then update commit changes note
54
  # define echo function & set up chat interface
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  import gradio as gr
57
 
58
  def echo(message, history):
 
59
  return message
60
 
61
- chatbot = gr.ChatInterface(echo)
62
- chatbot.launch()
63
-
64
- # after this, go back to slides until the try-it
 
53
  #then update commit changes note
54
  # define echo function & set up chat interface
55
 
56
+ #import gradio as gr
57
+
58
+ #def echo(message, history):
59
+ #return message
60
+
61
+ #chatbot = gr.ChatInterface(echo)
62
+ #chatbot.launch()
63
+
64
+ # after this, go back to slides until the try-it
65
+ # ope theres a warning in the log!
66
+ # so lets resolve this by after the echo function, add a comma and set the type parameter to messages
67
+ # before we close out i'm also going to add a print message that says Hello world
68
+ # what this is going to do is print Hello world every time it also repeates
69
+
70
  import gradio as gr
71
 
72
  def echo(message, history):
73
+ print("Hello, world!")
74
  return message
75
 
76
+ chatbot = gr.ChatInterface(echo, type='messages')
77
+ chatbot.launch()