HakanKilic01 commited on
Commit
c05a9c3
·
1 Parent(s): 6610d70

third commit

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,11 +1,12 @@
 
 
1
  import gradio as gr
2
 
3
- def greet(prompt):
4
- return "Hello " + prompt + "!!"
5
 
6
- iface = gr.Interface(
7
- fn=greet,
8
- inputs=gr.Textbox(lines=4, placeholder="Prompt here..."),
9
- outputs=gr.Textbox(lines=4),
10
- )
11
- iface.launch()
 
1
+ from os import name
2
+ import random
3
  import gradio as gr
4
 
5
+ def prompt(message, history):
6
+ return random.choice(["Yes", "No"])
7
 
8
+ demo = gr.ChatInterface(prompt,
9
+ title="codeBot",
10
+ description="Ask me a question")
11
+
12
+ demo.launch()