Spaces:
Runtime error
Runtime error
HakanKilic01
commited on
Commit
•
5b195fc
1
Parent(s):
e1ccdde
7th commit
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import random
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
4 |
def prompt(message, history):
|
5 |
-
return
|
6 |
|
7 |
demo = gr.ChatInterface(prompt,
|
8 |
title="codeBot",
|
|
|
1 |
import random
|
2 |
import gradio as gr
|
3 |
|
4 |
+
code = 'def hello_world(): return "Hello, world!" print(hello_world())'
|
5 |
+
|
6 |
def prompt(message, history):
|
7 |
+
return gr.Code(value=code,language="python")
|
8 |
|
9 |
demo = gr.ChatInterface(prompt,
|
10 |
title="codeBot",
|