Spaces:
Runtime error
Runtime error
HakanKilic01
commited on
Commit
·
c05a9c3
1
Parent(s):
6610d70
third commit
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return "
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
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()
|
|