Spaces:
Build error
Build error
Commit
·
23b4e49
0
Parent(s):
v1
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def GetText():
|
| 5 |
+
return "Teste!"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
with gr.Blocks() as demo:
|
| 9 |
+
btn = gr.Button("Click that button to start 2!")
|
| 10 |
+
fileResult = gr.Text();
|
| 11 |
+
btn.click( GetText, None, [fileResult] )
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
demo.launch(show_api=True)
|