Spaces:
Runtime error
Runtime error
HakanKilic01
commited on
Commit
•
ebb322e
1
Parent(s):
c05a9c3
4th commit
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
-
from os import name
|
2 |
-
import random
|
3 |
import gradio as gr
|
4 |
|
5 |
-
def prompt
|
6 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|