Spaces:
Sleeping
Sleeping
File size: 450 Bytes
984ce65 b1b2a89 984ce65 b1b2a89 984ce65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from flask import Flask, jsonify, render_template, request, make_response
from transformers import AutoModel, AutoTokenizer
app = Flask(__name__)
# Replace 'your-username' and 'your-repository-name' with your Hugging Face username and repository name
model_name = 'kumar9/word-auto-filled'
# Load the model and tokenizer
model = AutoModel.from_pretrained(model_name)
@app.route("/", methods=["GET", "POST"])
def index():
return "Hello S4!" |