Spaces:
Runtime error
Runtime error
Commit
·
13bcbbe
1
Parent(s):
7c9bdd2
final commit
Browse files
main.py
CHANGED
@@ -122,7 +122,7 @@ def facebook_response(url, input_sentence):
|
|
122 |
|
123 |
|
124 |
image_cache = {}
|
125 |
-
@app.post('/upload
|
126 |
def upload_file():
|
127 |
try:
|
128 |
file = request.files['file']
|
@@ -143,7 +143,7 @@ def upload_file():
|
|
143 |
def home():
|
144 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
145 |
|
146 |
-
@app.get("/get
|
147 |
def get_bot_response():
|
148 |
try:
|
149 |
if 'image' in image_cache:
|
|
|
122 |
|
123 |
|
124 |
image_cache = {}
|
125 |
+
@app.post('/upload')
|
126 |
def upload_file():
|
127 |
try:
|
128 |
file = request.files['file']
|
|
|
143 |
def home():
|
144 |
return FileResponse(path="/app/static/index.html", media_type="text/html")
|
145 |
|
146 |
+
@app.get("/get")
|
147 |
def get_bot_response():
|
148 |
try:
|
149 |
if 'image' in image_cache:
|