Spaces:
Runtime error
Runtime error
HakanKilic01
commited on
Commit
•
b52a718
1
Parent(s):
ebb322e
5th commit
Browse files
app.py
CHANGED
@@ -1,13 +1,16 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return "
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
|
|
|
|
|
|
1 |
+
import random
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def prompt(message, history):
|
5 |
+
return random.choice(["Yes", "No"])
|
6 |
|
7 |
+
demo = gr.ChatInterface(prompt,
|
8 |
+
title="codeBot",
|
9 |
+
description="Ask me a question"
|
10 |
+
retry_btn="Retry",
|
11 |
+
undo_btn=None,
|
12 |
+
clear_btn="Clear")
|
13 |
|
14 |
|
15 |
+
|
16 |
+
demo.launch()
|