Spaces:
Sleeping
Sleeping
research14
commited on
Commit
•
6f1af31
1
Parent(s):
ef32709
Added default gradio code
Browse files
app.py
CHANGED
@@ -1,5 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
with gr.Blocks() as demo:
|
4 |
with gr.Row():
|
5 |
btn0 = gr.Button("ChatGPT", scale=1)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!"
|
5 |
+
|
6 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
|
8 |
with gr.Blocks() as demo:
|
9 |
with gr.Row():
|
10 |
btn0 = gr.Button("ChatGPT", scale=1)
|