HakanKilic01 commited on
Commit
ebb322e
1 Parent(s): c05a9c3

4th commit

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,12 +1,13 @@
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()
 
 
 
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()
12
 
 
 
 
13