Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def Mistral7B(prompt, instructions, api_key, temperature=0.2, max_new_tokens=4,
|
|
57 |
except Exception as e:
|
58 |
return str(e)
|
59 |
|
60 |
-
@app.route("/
|
61 |
def generate_text():
|
62 |
data = request.json
|
63 |
prompt = data.get("prompt")
|
|
|
57 |
except Exception as e:
|
58 |
return str(e)
|
59 |
|
60 |
+
@app.route("/generate_text", methods=["POST"])
|
61 |
def generate_text():
|
62 |
data = request.json
|
63 |
prompt = data.get("prompt")
|