Spaces:
Runtime error
Runtime error
Commit
·
db15717
1
Parent(s):
f1d9208
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,18 +6,11 @@ load_dotenv()
|
|
| 6 |
|
| 7 |
app = flask.Flask(__name__, template_folder="./")
|
| 8 |
|
| 9 |
-
# 定义API端点
|
| 10 |
-
#app = Flask(__name__)
|
| 11 |
-
#@app.route('/', methods=['POST'])
|
| 12 |
-
#def home_api():
|
| 13 |
-
#...
|
| 14 |
-
# return {"Message":"Flask Home API Deploy Success on HF"}
|
| 15 |
-
#@app.route('/api/chat', methods=['POST'])
|
| 16 |
-
#...
|
| 17 |
-
|
| 18 |
@app.route('/')
|
|
|
|
| 19 |
def index():
|
| 20 |
-
return flask.render_template('index.html')
|
|
|
|
| 21 |
|
| 22 |
#app = Flask(__name__)
|
| 23 |
@app.route('/api/chat', methods=['POST'])
|
|
|
|
| 6 |
|
| 7 |
app = flask.Flask(__name__, template_folder="./")
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
@app.route('/')
|
| 10 |
+
#@app.route('/', methods=['POST'])
|
| 11 |
def index():
|
| 12 |
+
return flask.render_template('index.html')
|
| 13 |
+
# return {"Message":"Flask Home API Deploy Success on HF"}
|
| 14 |
|
| 15 |
#app = Flask(__name__)
|
| 16 |
@app.route('/api/chat', methods=['POST'])
|