This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import ( | |
Flask, | |
request, | |
) | |
app = Flask(__name__) | |
@app.route("/chat", methods=["POST"]) | |
def chat_post(): | |
args = request.json | |
question = args["question"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import magic | |
from PIL import Image | |
from inky.inky_uc8159 import Inky | |
from flask import Flask, request, Response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'react-native-repro' { | |
export const GENDER_OTHER = 'other'; | |
export const GENDER_FEMALE = 'female'; | |
export const GENDER_MALE = 'male'; | |
/** | |
* @see https://docs.repro.io/en/dev/sdk/user-id.html#set-app-user-id | |
*/ | |
export function setUserID(user_id: string): void; |