Spaces:
Sleeping
Sleeping
Fix
Browse files- .vscode/settings.json +2 -4
- app.py +3 -1
.vscode/settings.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
-
|
| 4 |
-
},
|
| 5 |
-
"python.formatting.provider": "none"
|
| 6 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"python.formatting.provider": "ms-python.autopep8",
|
| 3 |
+
"python.defaultInterpreterPath": "/home/pelokbal/.local/bin/ai_env/bin/python3",
|
|
|
|
|
|
|
| 4 |
}
|
app.py
CHANGED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
|
|
|
| 7 |
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
|
| 4 |
def greet(name):
|
| 5 |
return "Hello " + name + "!!"
|
| 6 |
|
| 7 |
+
|
| 8 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 9 |
iface.launch()
|