Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
|
@@ -8,12 +8,6 @@ import json
|
|
| 8 |
DEBUG_MODE = False
|
| 9 |
|
| 10 |
|
| 11 |
-
#@app.route('/api/test1', methods=['GET'])
|
| 12 |
-
def endpoint1():
|
| 13 |
-
# Your logic for the first endpoint
|
| 14 |
-
#return jsonify({"message": "Endpoint 1"})
|
| 15 |
-
return "Endpoint 1"
|
| 16 |
-
|
| 17 |
|
| 18 |
def echo(text, request: gr.Request):
|
| 19 |
output_text = {"report1": "SUCCESS"} # Initialize as a dictionary
|
|
@@ -22,13 +16,7 @@ def echo(text, request: gr.Request):
|
|
| 22 |
# Convert headers to a dictionary and include them in the output_text
|
| 23 |
output_text["headers"] = dict(request.headers.items())
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
#audio_out = gr.Audio(label="Generated Audio",
|
| 30 |
-
# type="numpy", elem_id="audio_out")
|
| 31 |
-
|
| 32 |
output_text_json = json.dumps(output_text)
|
| 33 |
return output_text_json
|
| 34 |
|
|
|
|
| 8 |
DEBUG_MODE = False
|
| 9 |
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def echo(text, request: gr.Request):
|
| 13 |
output_text = {"report1": "SUCCESS"} # Initialize as a dictionary
|
|
|
|
| 16 |
# Convert headers to a dictionary and include them in the output_text
|
| 17 |
output_text["headers"] = dict(request.headers.items())
|
| 18 |
|
| 19 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
output_text_json = json.dumps(output_text)
|
| 21 |
return output_text_json
|
| 22 |
|