Spaces:
Runtime error
Runtime error
Commit
·
0a0d05c
1
Parent(s):
71c537b
Update app.py
Browse files
app.py
CHANGED
@@ -6,5 +6,9 @@ app = Flask(__name__)
|
|
6 |
def index():
|
7 |
return {"output": "Hello, world!"}
|
8 |
|
|
|
|
|
|
|
|
|
9 |
if __name__ == "__main__":
|
10 |
app.run(host="0.0.0.0", port=7860)
|
|
|
6 |
def index():
|
7 |
return {"output": "Hello, world!"}
|
8 |
|
9 |
+
@app.route("/predict<text>")
|
10 |
+
def predict(text):
|
11 |
+
return text
|
12 |
+
|
13 |
if __name__ == "__main__":
|
14 |
app.run(host="0.0.0.0", port=7860)
|