Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def gpt_francais():
|
|
118 |
response = model.generate_content(prompt)
|
119 |
return jsonify({"output": response.text}), 200
|
120 |
except Exception as e:
|
121 |
-
return jsonify({"output":
|
122 |
|
123 |
@app.route('/api/etude-texte', methods=['POST'])
|
124 |
def gpt_francais_cc():
|
|
|
118 |
response = model.generate_content(prompt)
|
119 |
return jsonify({"output": response.text}), 200
|
120 |
except Exception as e:
|
121 |
+
return jsonify({"output": "eror"}), 500
|
122 |
|
123 |
@app.route('/api/etude-texte', methods=['POST'])
|
124 |
def gpt_francais_cc():
|