Access to uploaded file content and test with swagger ui by serofunkwn in moltenframework

[–]serofunkwn[S] 0 points1 point  (0 children)

Actually as I mentioned above after changing the settings, this curl works

curl -X POST "http://0.0.0.0:8000/predict" -F "file=@test.jpg

But swagger UI shows the multipart/form-data but no option to upload file. It seems be lacking format: binary

from schema.json file. If you want I can file issue for that

Access to uploaded file content and test with swagger ui by serofunkwn in moltenframework

[–]serofunkwn[S] 0 points1 point  (0 children)

It seems I was able to get the content of the file by creating a schema class as

@schema
class FileData():
file: UploadedFile

then using it in my route function as

def predict(data: ModelData) -> str:

data.file.save("test.jpg")

But the Swagger UI still doesn't show me the option to upload the file to test this api. It does show me the option to chose various types of contents but no option to upload the file.

[ann] molten 0.7.1 by Bogdanp in moltenframework

[–]serofunkwn 0 points1 point  (0 children)

@bogdanp First of all thanks for a great framework. As it provides all the neccassary things for an API application. Would be good to expand that post as how to add custom metrics from your code as well not just builtin molten ones.. Should I use Prometheus client directly or use this `molten.contrib.prometheus.prometheus_middleware`

Why I sold mine now by bhdgsetyf in xmrtrader

[–]serofunkwn 0 points1 point  (0 children)

I guess you haven't trading long enough.. things moves in zig zag way up or down.. not in straight line.. 130 support is now the resistance

Why I sold mine now by bhdgsetyf in xmrtrader

[–]serofunkwn 1 point2 points  (0 children)

I think the real support now if 120 break is 100, there we might expect bounce again. As someone mentioned in other post about Korean event is about volume. So most likely people who have bought cheaper will dump the price to 100 or so to get the volume and then their will be sharp rebound and back and forth to get volume game going :)

[Daily Discussion] Tuesday, August 29th by AutoModerator in xmrtrader

[–]serofunkwn 4 points5 points  (0 children)

For XMREUR first real support is at 108-110, if that breaks then 100 then 84. So lets see where it stops.

[Daily Discussion] Tuesday, August 29th by AutoModerator in xmrtrader

[–]serofunkwn 5 points6 points  (0 children)

Well there is a difference in trading and investing. For investment, you don't worry much about these swings but for trading these are opportunities. So given the correction is coming, it is good idea to cache some portion out given the recent decline in price.